tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::script::printer::LambdaDocObj Class Reference

Doc that represents anonymous function. More...

#include <doc.h>

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

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.LambdaDoc", LambdaDocObj, ExprDocObj)
 
- Public Member Functions inherited from tvm::script::printer::ExprDocObj
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", ExprDocObj, DocObj)
 
- Public Member Functions inherited from tvm::script::printer::DocObj
 TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.Doc", DocObj, ffi::Object)
 

Static Public Member Functions

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

Public Attributes

ffi::Array< IdDoc > args
 The arguments of this anonymous function.
 
ExprDoc body {ffi::UnsafeInit()}
 The body of this anonymous function.
 
- Public Attributes inherited from tvm::script::printer::DocObj
ffi::Array< AccessPath > source_paths
 The list of object paths of the source IR node.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::script::printer::DocObj
static constexpr bool _type_mutable = true
 

Detailed Description

Doc that represents anonymous function.

LambdaDoc can only have positional arguments without type annotation, and a single expression as body.

See also
LambdaDoc

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::script::printer::LambdaDocObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "script.printer.LambdaDoc"  ,
LambdaDocObj  ,
ExprDocObj   
)

Member Data Documentation

◆ args

ffi::Array<IdDoc> tvm::script::printer::LambdaDocObj::args

The arguments of this anonymous function.

◆ body

ExprDoc tvm::script::printer::LambdaDocObj::body {ffi::UnsafeInit()}

The body of this anonymous function.


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