Global variable that lives in the top-level module.
More...
#include <expr.h>
|
| bool | SEqual (const GlobalVarObj *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", GlobalVarObj, ExprObj) |
| |
| | TVM_FFI_DECLARE_OBJECT_INFO ("ir.Expr", ExprObj, ffi::Object) |
| |
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
- GlobalVarObj
◆ RegisterReflection()
| static void tvm::GlobalVarObj::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ SEqual()
| bool tvm::GlobalVarObj::SEqual |
( |
const GlobalVarObj * |
other, |
|
|
ffi::TypedFunction< bool(AnyView, AnyView, bool, AnyView)> |
equal |
|
) |
| const |
|
inline |
◆ SHash()
| int64_t tvm::GlobalVarObj::SHash |
( |
int64_t |
init_hash, |
|
|
ffi::TypedFunction< int64_t(AnyView, int64_t, bool)> |
hash |
|
) |
| const |
|
inline |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::GlobalVarObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"ir.GlobalVar" |
, |
|
|
GlobalVarObj |
, |
|
|
ExprObj |
|
|
) |
| |
◆ _type_s_eq_hash_kind
| constexpr TVMFFISEqHashKind tvm::GlobalVarObj::_type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar |
|
staticconstexpr |
◆ name_hint
| ffi::String tvm::GlobalVarObj::name_hint |
The name of the variable, this only acts as a hint.
The documentation for this class was generated from the following file:
- 3rdparty/tvm-tirx/include/tvm/ir/expr.h