tvm
Public Member Functions | Static Public Member Functions | 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 (ffi::String attr) const
 Create a doc representing attribute access on the current ExprDoc. More...
 
ExprDoc operator[] (ffi::Array< Doc > indices) const
 Create a doc representing index access on the current ExprDoc. More...
 
ExprDoc Call (ffi::Array< ExprDoc, void > args) const
 Create a doc representing calling the current ExprDoc. More...
 
ExprDoc Call (ffi::Array< ExprDoc, void > args, ffi::Array< ffi::String > kwargs_keys, ffi::Array< ExprDoc, void > kwargs_values) const
 Create a doc representing attribute access on the current ExprDoc. More...
 
 TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.ExprDoc", ExprDocNode, DocNode)
 
- Public Member Functions inherited from tvm::script::printer::DocNode
 TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.Doc", 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 ()
 

Additional Inherited Members

- Public Attributes inherited from tvm::script::printer::DocNode
ffi::Array< ffi::reflection::AccessPath > source_paths
 The list of object paths of the source IR node. More...
 
- Static Public Attributes inherited from tvm::script::printer::DocNode
static constexpr bool _type_mutable = true
 

Detailed Description

The base class of expression doc.

See also
ExprDoc

Member Function Documentation

◆ Attr()

ExprDoc tvm::script::printer::ExprDocNode::Attr ( ffi::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 ( ffi::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 ( ffi::Array< ExprDoc, void >  args,
ffi::Array< ffi::String >  kwargs_keys,
ffi::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[] ( ffi::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_FFI_DECLARE_OBJECT_INFO()

tvm::script::printer::ExprDocNode::TVM_FFI_DECLARE_OBJECT_INFO ( "script.printer.ExprDoc"  ,
ExprDocNode  ,
DocNode   
)

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