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

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

#include <stmt.h>

Inheritance diagram for tvm::EvaluateObj:
Collaboration diagram for tvm::EvaluateObj:

Public Member Functions

 EvaluateObj (ffi::UnsafeInit tag)
 
 EvaluateObj (Expr value)
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.Evaluate", EvaluateObj, StmtObj)
 
- Public Member Functions inherited from tvm::StmtObj
 StmtObj ()=default
 
 StmtObj (Location loc)
 
 TVM_FFI_DECLARE_OBJECT_INFO ("ir.Stmt", StmtObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::StmtObj
static void RegisterReflection ()
 

Public Attributes

Expr value
 The expression to be evaluated.
 
- Public Attributes inherited from tvm::StmtObj
Location loc = UnknownLoc()
 Location that points to the original source code. Reserved debug information.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::StmtObj
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

◆ EvaluateObj() [1/2]

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

◆ EvaluateObj() [2/2]

tvm::EvaluateObj::EvaluateObj ( Expr  value)
inlineexplicit

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::EvaluateObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.Evaluate"  ,
EvaluateObj  ,
StmtObj   
)

Member Data Documentation

◆ value

Expr tvm::EvaluateObj::value

The expression to be evaluated.


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