Class IfDoc#

Inheritance Relationships#

Base Type#

Class Documentation#

class IfDoc : public tvm::script::printer::StmtDoc#

Reference type of IfDocObj.

See also

IfDocObj

Public Types

using ContainerType = IfDocObj#

Public Functions

explicit IfDoc(ExprDoc predicate, ffi::Array<StmtDoc> then_branch, ffi::Optional<ffi::Array<StmtDoc>> else_branch)#

Constructor of IfDoc.

Parameters:
  • predicate – The predicate of the if-then-else statement.

  • then_branch – The then branch of the if-then-else statement.

  • else_branch – The else branch, or nullopt when no else branch is present.

inline explicit IfDoc(::tvm::ffi::UnsafeInit tag)#
inline __PtrType operator->() const#
inline __PtrType get() const#