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

The base class of expression doc. More...

#include <doc.h>

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

Public Member Functions

ExprDoc Attr (String attr) const
 Create a doc representing attribute access on the current ExprDoc. More...
 
ExprDoc operator[] (Array< Doc > indices) const
 Create a doc representing index access on the current ExprDoc. More...
 
ExprDoc Call (Array< ExprDoc, void > args) const
 Create a doc representing calling the current ExprDoc. More...
 
ExprDoc Call (Array< ExprDoc, void > args, Array< String > kwargs_keys, Array< ExprDoc, void > kwargs_values) const
 Create a doc representing attribute access on the current ExprDoc. More...
 
 TVM_DECLARE_BASE_OBJECT_INFO (ExprDocNode, 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 ()
 

Static Public Attributes

static constexpr const char * _type_key = "script.printer.ExprDoc"
 
- Static Public Attributes inherited from tvm::script::printer::DocNode
static constexpr const char * _type_key = "script.printer.Doc"
 
static constexpr bool _type_mutable = true
 

Additional Inherited Members

- 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...
 

Detailed Description

The base class of expression doc.

See also
ExprDoc

Member Function Documentation

◆ Attr()

ExprDoc tvm::script::printer::ExprDocNode::Attr ( String  attr) const

Create a doc representing attribute access on the current ExprDoc.

Parameters
attrThe attribute to access.

◆ Call() [1/2]

ExprDoc tvm::script::printer::ExprDocNode::Call ( Array< ExprDoc, void >  args) const

Create a doc representing calling the current ExprDoc.

Parameters
argsThe positional arguments of the function call.

◆ Call() [2/2]

ExprDoc tvm::script::printer::ExprDocNode::Call ( Array< ExprDoc, void >  args,
Array< String >  kwargs_keys,
Array< ExprDoc, void >  kwargs_values 
) const

Create a doc representing attribute access on the current ExprDoc.

Parameters
argsThe positional arguments of the function call.
kwargs_keysKeys of keywords arguments of the function call.
kwargs_valuesValues of keywords arguments of the function call.

◆ operator[]()

ExprDoc tvm::script::printer::ExprDocNode::operator[] ( Array< Doc indices) const

Create a doc representing index access on the current ExprDoc.

Parameters
indicesThe indices to access.

◆ RegisterReflection()

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

◆ TVM_DECLARE_BASE_OBJECT_INFO()

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

Member Data Documentation

◆ _type_key

constexpr const char* tvm::script::printer::ExprDocNode::_type_key = "script.printer.ExprDoc"
staticconstexpr

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