Class ExprDocObj#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class ExprDocObj : public tvm::script::printer::DocObj#

The base class of expression doc.

See also

ExprDoc

Subclassed by tvm::script::printer::AttrAccessDocObj, tvm::script::printer::CallDocObj, tvm::script::printer::DictDocObj, tvm::script::printer::ExprStringDocObj, tvm::script::printer::IdDocObj, tvm::script::printer::IndexDocObj, tvm::script::printer::LambdaDocObj, tvm::script::printer::ListDocObj, tvm::script::printer::LiteralDocObj, tvm::script::printer::NamespaceDocObj, tvm::script::printer::OperationDocObj, tvm::script::printer::TupleDocObj

Public Functions

ExprDoc Attr(ffi::String attr) const#

Create a doc representing attribute access on the current ExprDoc.

Parameters:

attr – The attribute to access.

ExprDoc operator[](ffi::Array<Doc> indices) const#

Create a doc representing index access on the current ExprDoc.

Parameters:

indices – The indices to access.

ExprDoc Call(ffi::Array<ExprDoc, void> args) const#

Create a doc representing calling the current ExprDoc.

Parameters:

args – The positional arguments of the function call.

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.

Parameters:
  • 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.

Public Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#