tvm
|
IfThenElse statement. More...
#include <stmt.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (IfThenElseNode, 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 | condition |
The condition. More... | |
Stmt | then_case |
The branch to be executed when condition is true. More... | |
Optional< Stmt > | else_case |
The branch to be executed when condition is false, can be null. 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.IfThenElse" |
![]() | |
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 |
IfThenElse statement.
|
inlinestatic |
tvm::tir::IfThenElseNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | IfThenElseNode | , |
StmtNode | |||
) |
|
staticconstexpr |
PrimExpr tvm::tir::IfThenElseNode::condition |
The condition.
Optional<Stmt> tvm::tir::IfThenElseNode::else_case |
The branch to be executed when condition is false, can be null.
Stmt tvm::tir::IfThenElseNode::then_case |
The branch to be executed when condition is true.