|
tvm
|
#include <stmt.h>
Public Member Functions | |
| IfObj (ffi::UnsafeInit tag) | |
| IfObj (PrimExpr condition, SeqStmt then_case) | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.If", IfObj, 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 | |
| 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::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 |
If statement.
|
inlineexplicit |
|
inlinestatic |
| PrimExpr tvm::IfObj::condition |
The condition.
| ffi::Optional<SeqStmt> tvm::IfObj::else_case |
The branch to be executed when condition is false, can be null.
| SeqStmt tvm::IfObj::then_case |
The branch to be executed when condition is true.