|
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_FFI_DECLARE_OBJECT_INFO_FINAL ("tir.AttrStmt", AttrStmtNode, StmtNode) | |
Public Member Functions inherited from tvm::tir::StmtNode | |
| StmtNode ()=default | |
| StmtNode (Span span) | |
| TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
| TVM_FFI_DECLARE_OBJECT_INFO ("tir.Stmt", StmtNode, Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::tir::StmtNode | |
| static void | RegisterReflection () |
Public Attributes | |
| ffi::Any | node |
| this is attribute about certain node More... | |
| ffi::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... | |
Public Attributes inherited from tvm::tir::StmtNode | |
| Span | span |
| Span that points to the original source code. Reserved debug information. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from tvm::tir::StmtNode | |
| 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_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "tir.AttrStmt" | , |
| AttrStmtNode | , | ||
| StmtNode | |||
| ) |
| ffi::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.