tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::EvaluateNode Class Reference

Evaluates an expression. This is mostly used for putting a Call node into Stmt. More...

#include <stmt.h>

Inheritance diagram for tvm::EvaluateNode:
Collaboration diagram for tvm::EvaluateNode:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ EvaluateNode() [1/2]

tvm::EvaluateNode::EvaluateNode ( ffi::UnsafeInit  tag)
inlineexplicit

◆ EvaluateNode() [2/2]

tvm::EvaluateNode::EvaluateNode ( Expr  value)
inlineexplicit

Member Function Documentation

◆ RegisterReflection()

static void tvm::EvaluateNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::EvaluateNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.Evaluate"  ,
EvaluateNode  ,
StmtNode   
)

Member Data Documentation

◆ value

Expr tvm::EvaluateNode::value

The expression to be evaluated.


The documentation for this class was generated from the following file: