|
tvm
|
Bind a variable to a value in the enclosing scope. More...
#include <stmt.h>
Public Member Functions | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tirx.Bind", BindNode, StmtNode) | |
Public Member Functions inherited from tvm::tirx::StmtNode | |
| StmtNode ()=default | |
| StmtNode (Span span) | |
| TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
| TVM_FFI_DECLARE_OBJECT_INFO ("tirx.Stmt", StmtNode, Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::tirx::StmtNode | |
| static void | RegisterReflection () |
Public Attributes | |
| Var | var |
| The variable being bound. More... | |
| PrimExpr | value |
| The value to bind to the variable. More... | |
Public Attributes inherited from tvm::tirx::StmtNode | |
| Span | span |
| Span that points to the original source code. Reserved debug information. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from tvm::tirx::StmtNode | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
| static constexpr const uint32_t | _type_child_slots = 15 |
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.
|
inlinestatic |
| PrimExpr tvm::tirx::BindNode::value |
The value to bind to the variable.
| Var tvm::tirx::BindNode::var |
The variable being bound.