tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::script::printer::DocNode Class Reference

The base class of all Doc. More...

#include <doc.h>

Inheritance diagram for tvm::script::printer::DocNode:
Collaboration diagram for tvm::script::printer::DocNode:

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~DocNode()

virtual tvm::script::printer::DocNode::~DocNode ( )
virtualdefault

Member Function Documentation

◆ RegisterReflection()

static void tvm::script::printer::DocNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_BASE_OBJECT_INFO()

tvm::script::printer::DocNode::TVM_DECLARE_BASE_OBJECT_INFO ( DocNode  ,
Object   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::script::printer::DocNode::_type_key = "script.printer.Doc"
staticconstexpr

◆ _type_mutable

constexpr bool tvm::script::printer::DocNode::_type_mutable = true
staticconstexpr

◆ source_paths

Array<ffi::reflection::AccessPath> tvm::script::printer::DocNode::source_paths
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.


The documentation for this class was generated from the following file: