Class IfDocObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class IfDocObj : public tvm::script::printer::StmtDocObj#

Doc that represent if-then-else statement.

See also

IfDoc

Public Members

ExprDoc predicate = {ffi::UnsafeInit()}#

The predicate of the if-then-else statement.

ffi::Array<StmtDoc> then_branch#

The then branch of the if-then-else statement.

ffi::Optional<ffi::Array<StmtDoc>> else_branch#

The optional else branch; an empty array represents a present empty branch.

Public Static Functions

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