|
tvm
|
The base class of expression doc. More...
#include <doc.h>
Public Member Functions | |
| TVM_TIRX_DLL ExprDoc | Attr (ffi::String attr) const |
| Create a doc representing attribute access on the current ExprDoc. | |
| TVM_TIRX_DLL ExprDoc | operator[] (ffi::Array< Doc > indices) const |
| Create a doc representing index access on the current ExprDoc. | |
| TVM_TIRX_DLL ExprDoc | Call (ffi::Array< ExprDoc, void > args) const |
| Create a doc representing calling the current ExprDoc. | |
| TVM_TIRX_DLL 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. | |
| 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, ffi::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< AccessPath > | source_paths |
| The list of object paths of the source IR node. | |
Static Public Attributes inherited from tvm::script::printer::DocNode | |
| static constexpr bool | _type_mutable = true |
The base class of expression doc.
| TVM_TIRX_DLL ExprDoc tvm::script::printer::ExprDocNode::Attr | ( | ffi::String | attr | ) | const |
Create a doc representing attribute access on the current ExprDoc.
| attr | The attribute to access. |
| TVM_TIRX_DLL ExprDoc tvm::script::printer::ExprDocNode::Call | ( | ffi::Array< ExprDoc, void > | args | ) | const |
Create a doc representing calling the current ExprDoc.
| args | The positional arguments of the function call. |
| TVM_TIRX_DLL 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.
| args | The positional arguments of the function call. |
| kwargs_keys | Keys of keywords arguments of the function call. |
| kwargs_values | Values of keywords arguments of the function call. |
| TVM_TIRX_DLL ExprDoc tvm::script::printer::ExprDocNode::operator[] | ( | ffi::Array< Doc > | indices | ) | const |
Create a doc representing index access on the current ExprDoc.
| indices | The indices to access. |
|
inlinestatic |
| tvm::script::printer::ExprDocNode::TVM_FFI_DECLARE_OBJECT_INFO | ( | "script.printer.ExprDoc" | , |
| ExprDocNode | , | ||
| DocNode | |||
| ) |