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

Global variable that lives in the top-level module. More...

#include <expr.h>

Inheritance diagram for tvm::GlobalVarNode:
Collaboration diagram for tvm::GlobalVarNode:

Public Member Functions

bool SEqual (const GlobalVarNode *other, ffi::TypedFunction< bool(AnyView, AnyView, bool, AnyView)> equal) const
 
uint64_t SHash (uint64_t init_hash, ffi::TypedFunction< uint64_t(AnyView, uint64_t, bool)> hash) const
 
 TVM_DECLARE_FINAL_OBJECT_INFO (GlobalVarNode, RelaxExprNode)
 
- Public Member Functions inherited from tvm::RelaxExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (RelaxExprNode, BaseExprNode)
 
- Public Member Functions inherited from tvm::BaseExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object)
 

Static Public Member Functions

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

Public Attributes

String name_hint
 The name of the variable, this only acts as a hint. More...
 
- Public Attributes inherited from tvm::RelaxExprNode
Optional< ObjectRef > struct_info_ = Optional<ObjectRef>()
 Stores the result of structure information of the expression that encapsulate both static shape and runtime information such as shape. More...
 
- Public Attributes inherited from tvm::BaseExprNode
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 = "ir.GlobalVar"
 
- Static Public Attributes inherited from tvm::RelaxExprNode
static constexpr const char * _type_key = "ir.RelaxExpr"
 
static constexpr const uint32_t _type_child_slots = 22
 
- Static Public Attributes inherited from tvm::BaseExprNode
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
 

Detailed Description

Global variable that lives in the top-level module.

A GlobalVar only refers to function definitions. This is used to enable recursive calls between function.

See also
GlobalVarNode

Member Function Documentation

◆ RegisterReflection()

static void tvm::GlobalVarNode::RegisterReflection ( )
inlinestatic

◆ SEqual()

bool tvm::GlobalVarNode::SEqual ( const GlobalVarNode other,
ffi::TypedFunction< bool(AnyView, AnyView, bool, AnyView)>  equal 
) const
inline

◆ SHash()

uint64_t tvm::GlobalVarNode::SHash ( uint64_t  init_hash,
ffi::TypedFunction< uint64_t(AnyView, uint64_t, bool)>  hash 
) const
inline

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::GlobalVarNode::TVM_DECLARE_FINAL_OBJECT_INFO ( GlobalVarNode  ,
RelaxExprNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::GlobalVarNode::_type_key = "ir.GlobalVar"
staticconstexpr

◆ _type_s_eq_hash_kind

constexpr TVMFFISEqHashKind tvm::GlobalVarNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar
staticconstexpr

◆ name_hint

String tvm::GlobalVarNode::name_hint

The name of the variable, this only acts as a hint.


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