tvm
|
Define certain auxiliary attribute for the body to be a symbolic value. This provide auxiliary information for IR passes that transforms body. More...
#include <stmt.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (AttrStmtNode, StmtNode) | |
![]() | |
StmtNode ()=default | |
StmtNode (Span span) | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_DECLARE_BASE_OBJECT_INFO (StmtNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
ffi::Any | node |
this is attribute about certain node More... | |
String | attr_key |
the type key of the attribute More... | |
PrimExpr | value |
The attribute value, value is well defined at current scope. More... | |
Stmt | body |
The body statement to be executed. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "tir.AttrStmt" |
![]() | |
static constexpr const char * | _type_key = "tir.Stmt" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const uint32_t | _type_child_slots = 15 |
Define certain auxiliary attribute for the body to be a symbolic value. This provide auxiliary information for IR passes that transforms body.
In terms of effect, this is equivalent to Block(Evaluate(value), body).
Examples of possible usage:
|
inlinestatic |
tvm::tir::AttrStmtNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | AttrStmtNode | , |
StmtNode | |||
) |
|
staticconstexpr |
String tvm::tir::AttrStmtNode::attr_key |
the type key of the attribute
Stmt tvm::tir::AttrStmtNode::body |
The body statement to be executed.
ffi::Any tvm::tir::AttrStmtNode::node |
this is attribute about certain node
PrimExpr tvm::tir::AttrStmtNode::value |
The attribute value, value is well defined at current scope.