tvm
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::tirx::BindNode Class Reference

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

#include <stmt.h>

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

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
 

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.

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

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

Member Data Documentation

◆ value

PrimExpr tvm::tirx::BindNode::value

The value to bind to the variable.

◆ var

Var tvm::tirx::BindNode::var

The variable being bound.


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