tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::BindObj Class Reference

Bind a variable to a value in the enclosing scope. More...

#include <stmt.h>

Inheritance diagram for tvm::BindObj:
Collaboration diagram for tvm::BindObj:

Public Member Functions

 BindObj (ffi::UnsafeInit tag)
 
 BindObj (Var var, Expr value)
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.Bind", BindObj, StmtObj)
 
- Public Member Functions inherited from tvm::StmtObj
 StmtObj ()=default
 
 StmtObj (Location loc)
 
 TVM_FFI_DECLARE_OBJECT_INFO ("ir.Stmt", StmtObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::StmtObj
static void RegisterReflection ()
 

Public Attributes

Var var
 The variable being bound.
 
Expr value
 The value to bind to the variable.
 
- Public Attributes inherited from tvm::StmtObj
Location loc = UnknownLoc()
 Location that points to the original source code. Reserved debug information.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::StmtObj
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr bool _type_s_eq_hash_subclass_kind_fixed = true
 
static constexpr const uint32_t _type_child_slots = 15
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BindObj() [1/2]

tvm::BindObj::BindObj ( ffi::UnsafeInit  tag)
inlineexplicit

◆ BindObj() [2/2]

tvm::BindObj::BindObj ( Var  var,
Expr  value 
)
inline

Member Function Documentation

◆ RegisterReflection()

static void tvm::BindObj::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::BindObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.Bind"  ,
BindObj  ,
StmtObj   
)

Member Data Documentation

◆ value

Expr tvm::BindObj::value

The value to bind to the variable.

◆ var

Var tvm::BindObj::var

The variable being bound.


The documentation for this class was generated from the following file: