Class DocObj#

Inheritance Relationships#

Base Type#

  • public ffi::Object

Derived Types#

Class Documentation#

class DocObj : public ffi::Object#

The base class of all Doc.

Doc is an intermediate representation between IR from TVM and the TVMScript code. During printing, IR graph is first translated into Doc tree, then the Doc tree is translated to the target language in text format.

See also

Doc

Subclassed by tvm::script::printer::ExprDocObj, tvm::script::printer::SliceDocObj, tvm::script::printer::StmtBlockDocObj, tvm::script::printer::StmtDocObj

Public Members

mutable ffi::Array<AccessPath> source_paths#

The list of object paths of the source IR node.

This is used to trace back to the IR node position where this Doc is generated, in order to position the diagnostic message.

Public Static Functions

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