tvm
|
Evaluates an expression. This is mostly used for putting a Call node into Stmt. More...
#include <stmt.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (EvaluateNode, 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 | |
PrimExpr | value |
The expression to be evaluated. 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.Evaluate" |
![]() | |
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 |
Evaluates an expression. This is mostly used for putting a Call node into Stmt.
If value do not have side-effect, this node can be safely removed.
|
inlinestatic |
tvm::tir::EvaluateNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | EvaluateNode | , |
StmtNode | |||
) |
|
staticconstexpr |
PrimExpr tvm::tir::EvaluateNode::value |
The expression to be evaluated.