Class StmtDocObj#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

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

The base class of statement doc.

See also

StmtDoc

Subclassed by tvm::script::printer::AssertDocObj, tvm::script::printer::AssignDocObj, tvm::script::printer::BreakDocObj, tvm::script::printer::ClassDocObj, tvm::script::printer::CommentDocObj, tvm::script::printer::ContinueDocObj, tvm::script::printer::DocStringDocObj, tvm::script::printer::ExprStmtDocObj, tvm::script::printer::ForDocObj, tvm::script::printer::FunctionDocObj, tvm::script::printer::IfDocObj, tvm::script::printer::ReturnDocObj, tvm::script::printer::ScopeDocObj, tvm::script::printer::WhileDocObj

Public Members

mutable ffi::Optional<ffi::String> comment = {std::nullopt}#

The comment of this doc.

The actual position of the comment depends on the type of Doc and also the DocPrinter implementation. It could be on the same line as the statement, or the line above, or inside the statement if it spans over multiple lines.

Public Static Functions

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