|
tvm
|
Evaluates an expression. This is mostly used for putting a Call node into Stmt. More...
#include <stmt.h>
Public Member Functions | |
| EvaluateNode (ffi::UnsafeInit tag) | |
| EvaluateNode (Expr value) | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.Evaluate", EvaluateNode, StmtNode) | |
Public Member Functions inherited from tvm::StmtNode | |
| StmtNode ()=default | |
| StmtNode (Location loc) | |
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.Stmt", StmtNode, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::StmtNode | |
| static void | RegisterReflection () |
Public Attributes | |
| Expr | value |
| The expression to be evaluated. | |
Public Attributes inherited from tvm::StmtNode | |
| Location | loc = UnknownLoc() |
| Location that points to the original source code. Reserved debug information. | |
Additional Inherited Members | |
Static Public Attributes inherited from tvm::StmtNode | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
| static constexpr bool | _type_s_eq_hash_subclass_kind_fixed = true |
| 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.
|
inlineexplicit |
|
inlineexplicit |
|
inlinestatic |
| tvm::EvaluateNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "ir.Evaluate" | , |
| EvaluateNode | , | ||
| StmtNode | |||
| ) |
| Expr tvm::EvaluateNode::value |
The expression to be evaluated.