tvm
|
A variable node in the IR. More...
#include <var.h>
Public Member Functions | |
TVM_DECLARE_BASE_OBJECT_INFO (VarNode, PrimExprNode) | |
![]() | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_DECLARE_BASE_OBJECT_INFO (PrimExprNode, BaseExprNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
String | name_hint |
The hint to the variable name. More... | |
Type | type_annotation |
type annotation of the variable. More... | |
![]() | |
DataType | dtype |
The runtime data type of the primitive expression. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Static Public Attributes | |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar |
static constexpr const char * | _type_key = "tir.Var" |
static constexpr const uint32_t | _type_child_slots = 1 |
![]() | |
static constexpr const char * | _type_key = "ir.PrimExpr" |
static constexpr const uint32_t | _type_child_slots = 40 |
![]() | |
static constexpr const char * | _type_key = "ir.BaseExpr" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const uint32_t | _type_child_slots = 64 |
A variable node in the IR.
A variable is uniquely identified by its address.
Each variable is only bound once in the following nodes:
|
inlinestatic |
tvm::tir::VarNode::TVM_DECLARE_BASE_OBJECT_INFO | ( | VarNode | , |
PrimExprNode | |||
) |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
String tvm::tir::VarNode::name_hint |
The hint to the variable name.
Type tvm::tir::VarNode::type_annotation |
type annotation of the variable.
It is an optional field that provides a refined type of the variable than dtype.