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

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

#include <stmt.h>

Inheritance diagram for tvm::BindNode:
Collaboration diagram for tvm::BindNode:

Public Member Functions

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

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::StmtNode
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::StmtNode
Location loc = UnknownLoc()
 Location that points to the original source code. Reserved debug information.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::StmtNode
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.

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

Constructor & Destructor Documentation

◆ BindNode() [1/2]

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

◆ BindNode() [2/2]

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

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::BindNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.Bind"  ,
BindNode  ,
StmtNode   
)

Member Data Documentation

◆ value

Expr tvm::BindNode::value

The value to bind to the variable.

◆ var

Var tvm::BindNode::var

The variable being bound.


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