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

If statement. More...

#include <stmt.h>

Inheritance diagram for tvm::IfNode:
Collaboration diagram for tvm::IfNode:

Public Member Functions

 IfNode (ffi::UnsafeInit tag)
 
 IfNode (PrimExpr condition, SeqStmt then_case)
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.If", IfNode, 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

PrimExpr condition
 The condition.
 
SeqStmt then_case
 The branch to be executed when condition is true.
 
ffi::Optional< SeqStmt > else_case
 The branch to be executed when condition is false, can be null.
 
- 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

If statement.

Constructor & Destructor Documentation

◆ IfNode() [1/2]

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

◆ IfNode() [2/2]

tvm::IfNode::IfNode ( PrimExpr  condition,
SeqStmt  then_case 
)
inline

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::IfNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.If"  ,
IfNode  ,
StmtNode   
)

Member Data Documentation

◆ condition

PrimExpr tvm::IfNode::condition

The condition.

◆ else_case

ffi::Optional<SeqStmt> tvm::IfNode::else_case

The branch to be executed when condition is false, can be null.

◆ then_case

SeqStmt tvm::IfNode::then_case

The branch to be executed when condition is true.


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