Class IfObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class IfObj : public tvm::StmtObj#

If statement.

Public Functions

inline explicit IfObj(ffi::UnsafeInit tag)#
inline IfObj(PrimExpr condition, SeqStmt then_case)#

Public Members

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 Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#