Class DocObj#
Defined in File doc.h
Inheritance Relationships#
Base Type#
public ffi::Object
Derived Types#
public tvm::script::printer::ExprDocObj(Class ExprDocObj)public tvm::script::printer::SliceDocObj(Class SliceDocObj)public tvm::script::printer::StmtBlockDocObj(Class StmtBlockDocObj)public tvm::script::printer::StmtDocObj(Class StmtDocObj)
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
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.
-
mutable ffi::Array<AccessPath> source_paths#