|
tvm
|
Global variable that lives in the top-level module. More...
#include <expr.h>
Public Member Functions | |
| bool | SEqual (const GlobalVarNode *other, ffi::TypedFunction< bool(AnyView, AnyView, bool, AnyView)> equal) const |
| int64_t | SHash (int64_t init_hash, ffi::TypedFunction< int64_t(AnyView, int64_t, bool)> hash) const |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.GlobalVar", GlobalVarNode, 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 name of the variable, this only acts as a hint. | |
Public Attributes inherited from tvm::ExprNode | |
| Span | span |
| Span that points to the original source code. Reserved debug information. | |
| Type | ty = Type::Missing() |
| The deduced or annotated type of the expression. | |
Static Public Attributes | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar |
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 |
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.
|
inline |
|
inline |
| tvm::GlobalVarNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "ir.GlobalVar" | , |
| GlobalVarNode | , | ||
| ExprNode | |||
| ) |
|
staticconstexpr |
| ffi::String tvm::GlobalVarNode::name_hint |
The name of the variable, this only acts as a hint.