|
tvm
|
A statement that annotates the execution scope for its body. More...
#include <stmt.h>
Public Member Functions | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tirx.ExecScopeStmt", ExecScopeStmtNode, 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, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::tirx::StmtNode | |
| static void | RegisterReflection () |
Public Attributes | |
| ExecScope | exec_scope |
| The execution scope. More... | |
| Stmt | body |
| The body statement under this execution scope. 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 |
A statement that annotates the execution scope for its body.
ExecScopeStmt represents a hardware execution scope (e.g. cta, warp, thread) that wraps a body statement. This decouples the execution scope concept from SBlock, making the IR structure cleaner.
Example:
|
inlinestatic |
| tvm::tirx::ExecScopeStmtNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "tirx.ExecScopeStmt" | , |
| ExecScopeStmtNode | , | ||
| StmtNode | |||
| ) |
| Stmt tvm::tirx::ExecScopeStmtNode::body |
The body statement under this execution scope.
| ExecScope tvm::tirx::ExecScopeStmtNode::exec_scope |
The execution scope.