|
tvm
|
#include <stmt.h>
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 |
If statement.
|
inlineexplicit |
|
inlinestatic |
| PrimExpr tvm::IfNode::condition |
The condition.
| ffi::Optional<SeqStmt> tvm::IfNode::else_case |
The branch to be executed when condition is false, can be null.
| SeqStmt tvm::IfNode::then_case |
The branch to be executed when condition is true.