Class BindObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class BindObj : public tvm::StmtObj#

Bind a variable to a value in the enclosing scope.

BindObj has no body field. The bound variable is visible in all subsequent statements within the same enclosing scope (SeqStmt, ForObj.body, etc.). This enables flat (non-nested) IR sequences.

Public Functions

inline explicit BindObj(ffi::UnsafeInit tag)#
inline BindObj(Var var, Expr value)#

Public Members

Var var#

The variable being bound.

Expr value#

The value to bind to the variable.

Public Static Functions

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