27#include <tvm/ffi/container/array.h>
28#include <tvm/ffi/dtype.h>
29#include <tvm/ffi/reflection/registry.h>
64 namespace refl = tvm::ffi::reflection;
65 refl::ObjectDef<TensorRegionTypeNode>();
115 namespace refl = tvm::ffi::reflection;
116 refl::ObjectDef<PtrTypeNode>()
154 namespace refl = tvm::ffi::reflection;
193 return n && n->
fields.size() == 0;
212 namespace refl = tvm::ffi::reflection;
213 refl::ObjectDef<FuncTypeNode>()
Base expression and primitive type nodes.
The top type, which admits any value.
Definition type.h:43
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.AnyType", AnyTypeNode, TypeNode)
static void RegisterReflection()
Definition type.h:45
Managed reference to AnyTypeNode.
Definition type.h:53
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(AnyType, Type, AnyTypeNode)
TVM_TIRX_DLL AnyType(Location loc=UnknownLoc())
Function type.
Definition type.h:204
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.FuncType", FuncTypeNode, TypeNode)
Type ret_type
The type of return value.
Definition type.h:209
ffi::Array< Type > arg_types
type type of arguments
Definition type.h:207
static void RegisterReflection()
Definition type.h:211
Managed reference to FuncTypeNode.
Definition type.h:224
TVM_TIRX_DLL FuncType(ffi::Array< Type > arg_types, Type ret_type, Location loc=UnknownLoc())
Constructor.
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(FuncType, Type, FuncTypeNode)
Non-nullable source-location metadata.
Definition location.h:91
static TVM_TIRX_DLL PrimType Void()
Construct the void sentinel type, encoded as handle(0, 0).
Low-level raw pointer type.
Definition type.h:103
ffi::String storage_scope
The storage scope of the pointer.
Definition type.h:112
static void RegisterReflection()
Definition type.h:114
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.PtrType", PtrTypeNode, TypeNode)
Type element_type
The type of the element which the pointer points to.
Definition type.h:108
TVM_TIRX_DLL PtrType(Type element_type, ffi::String storage_scope="")
Constructor.
static TVM_TIRX_DLL PtrType VoidPtrType(ffi::String storage_scope="")
Construct an opaque pointer with void element type.
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(PtrType, Type, PtrTypeNode)
Semantic string type; its physical representation is context dependent.
Definition type.h:80
static void RegisterReflection()
Definition type.h:82
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.StringType", StringTypeNode, TypeNode)
Managed reference to StringTypeNode.
Definition type.h:87
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(StringType, Type, StringTypeNode)
TVM_TIRX_DLL StringType()
The type of a multi-dimensional tensor region expression.
Definition type.h:61
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.TensorRegionType", TensorRegionTypeNode, TypeNode)
static void RegisterReflection()
Definition type.h:63
Managed reference to TensorRegionTypeNode.
Definition type.h:72
TVM_TIRX_DLL TensorRegionType()
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(TensorRegionType, Type, TensorRegionTypeNode)
The type of tuple values.
Definition type.h:146
TupleTypeNode()
Definition type.h:151
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.TupleType", TupleTypeNode, TypeNode)
static void RegisterReflection()
Definition type.h:153
ffi::Array< Type > fields
The type of each field in the tuple.
Definition type.h:149
Managed reference to TupleTypeNode.
Definition type.h:164
TVM_TIRX_DLL static TupleType Empty()
Create an empty tuple type that constains nothing.
TVM_TIRX_DLL TupleType(ffi::Array< Type > fields, Location loc=UnknownLoc())
Constructor.
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(TupleType, Type, TupleTypeNode)
Type is the base type of all types.
Definition base_expr.h:54
Managed reference to TypeNode.
Definition base_expr.h:80
Reference to the shared immutable unknown location.
Definition location.h:105
Source locations and source-text lookup.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
bool IsVoidType(const Type &type)
Check whether the tyep represents void.
Definition type.h:191
Type VoidType()
Definition type.h:185
#define TVM_TIRX_DLL
Definition base.h:83