Class GlobalVarObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class GlobalVarObj : public tvm::ExprObj#

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

Public Functions

inline bool SEqual(const GlobalVarObj *other, ffi::TypedFunction<bool(AnyView, AnyView, bool, AnyView)> equal) const#
inline int64_t SHash(int64_t init_hash, ffi::TypedFunction<int64_t(AnyView, int64_t, bool)> hash) const#

Public Members

ffi::String name_hint#

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

Public Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#