Class IfDoc#
Defined in File doc.h
Inheritance Relationships#
Base Type#
public tvm::script::printer::StmtDoc(Class StmtDoc)
Class Documentation#
-
class IfDoc : public tvm::script::printer::StmtDoc#
Reference type of IfDocObj.
See also
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#
-
explicit IfDoc(ExprDoc predicate, ffi::Array<StmtDoc> then_branch, ffi::Optional<ffi::Array<StmtDoc>> else_branch)#