tvm
|
IfThenElse statement. More...
#include <stmt.h>
Public Member Functions | |
TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tir.IfThenElse", IfThenElseNode, StmtNode) | |
![]() | |
StmtNode ()=default | |
StmtNode (Span span) | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_FFI_DECLARE_OBJECT_INFO ("tir.Stmt", 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... | |
ffi::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... | |
Additional Inherited Members | |
![]() | |
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_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "tir.IfThenElse" | , |
IfThenElseNode | , | ||
StmtNode | |||
) |
PrimExpr tvm::tir::IfThenElseNode::condition |
The condition.
ffi::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.