tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::tirx::VarNode Class Reference

A variable node in the IR. More...

#include <var.h>

Inheritance diagram for tvm::tirx::VarNode:
Collaboration diagram for tvm::tirx::VarNode:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO ("tirx.Var", VarNode, ExprNode)
 
- Public Member Functions inherited from tvm::ExprNode
 TVM_FFI_DECLARE_OBJECT_INFO ("ir.Expr", ExprNode, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::ExprNode
static void RegisterReflection ()
 

Public Attributes

ffi::String name_hint
 The hint to the variable name. More...
 
- Public Attributes inherited from tvm::ExprNode
Span span
 Span that points to the original source code. Reserved debug information. More...
 
Type ty = Type::Missing()
 The deduced or annotated type of the expression. More...
 

Static Public Attributes

static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar
 
static constexpr const uint32_t _type_child_slots = 1
 
- Static Public Attributes inherited from tvm::ExprNode
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr const uint32_t _type_child_slots = 64
 

Detailed Description

A variable node in the IR.

A variable is uniquely identified by its address.

Each variable is only bound once in the following nodes:

Member Function Documentation

◆ RegisterReflection()

static void tvm::tirx::VarNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO()

tvm::tirx::VarNode::TVM_FFI_DECLARE_OBJECT_INFO ( "tirx.Var"  ,
VarNode  ,
ExprNode   
)

Member Data Documentation

◆ _type_child_slots

constexpr const uint32_t tvm::tirx::VarNode::_type_child_slots = 1
staticconstexpr

◆ _type_s_eq_hash_kind

constexpr TVMFFISEqHashKind tvm::tirx::VarNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar
staticconstexpr

◆ name_hint

ffi::String tvm::tirx::VarNode::name_hint

The hint to the variable name.

Note
Each variable is uniquely identified by its address.

The documentation for this class was generated from the following file: