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

The base class of statement doc. More...

#include <doc.h>

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

Public Member Functions

 TVM_DECLARE_BASE_OBJECT_INFO (StmtDocNode, DocNode)
 
- Public Member Functions inherited from tvm::script::printer::DocNode
 TVM_DECLARE_BASE_OBJECT_INFO (DocNode, Object)
 
virtual ~DocNode ()=default
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::printer::DocNode
static void RegisterReflection ()
 

Public Attributes

Optional< String > comment {std::nullopt}
 The comment of this doc. More...
 
- Public Attributes inherited from tvm::script::printer::DocNode
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.StmtDoc"
 
- Static Public Attributes inherited from tvm::script::printer::DocNode
static constexpr const char * _type_key = "script.printer.Doc"
 
static constexpr bool _type_mutable = true
 

Detailed Description

The base class of statement doc.

See also
StmtDoc

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_DECLARE_BASE_OBJECT_INFO()

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

Member Data Documentation

◆ _type_key

constexpr const char* tvm::script::printer::StmtDocNode::_type_key = "script.printer.StmtDoc"
staticconstexpr

◆ comment

Optional<String> tvm::script::printer::StmtDocNode::comment {std::nullopt}
mutable

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.


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