tvm
|
The base class of all Doc. More...
#include <doc.h>
Public Member Functions | |
TVM_DECLARE_BASE_OBJECT_INFO (DocNode, Object) | |
virtual | ~DocNode ()=default |
Static Public Member Functions | |
static void | RegisterReflection () |
Public Attributes | |
Array< ffi::reflection::AccessPath > | source_paths |
The list of object paths of the source IR node. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "script.printer.Doc" |
static constexpr bool | _type_mutable = true |
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.
|
virtualdefault |
|
inlinestatic |
tvm::script::printer::DocNode::TVM_DECLARE_BASE_OBJECT_INFO | ( | DocNode | , |
Object | |||
) |
|
staticconstexpr |
|
staticconstexpr |
|
mutable |
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.