Global variable that lives in the top-level module.
More...
#include <expr.h>
|
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_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.GlobalVar", GlobalVarNode, RelaxExprNode) |
|
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.RelaxExpr", RelaxExprNode, BaseExprNode) |
|
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.BaseExpr", BaseExprNode, Object) |
|
|
ffi::String | name_hint |
| The name of the variable, this only acts as a hint. More...
|
|
ffi::Optional< ObjectRef > | struct_info_ = ffi::Optional<ObjectRef>() |
| Stores the result of structure information of the expression that encapsulate both static shape and runtime information such as shape. More...
|
|
Span | span |
| Span that points to the original source code. Reserved debug information. More...
|
|
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
◆ 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_FFI_DECLARE_OBJECT_INFO_FINAL()
◆ _type_s_eq_hash_kind
constexpr TVMFFISEqHashKind tvm::GlobalVarNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar |
|
staticconstexpr |
◆ name_hint
ffi::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: