tvm
|
Doc that represents anonymous function. More...
#include <doc.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (LambdaDocNode, ExprDocNode) | |
![]() | |
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) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (DocNode, Object) | |
virtual | ~DocNode ()=default |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
Array< IdDoc > | args |
The arguments of this anonymous function. More... | |
ExprDoc | body {nullptr} |
The body of this anonymous function. More... | |
![]() | |
Array< ffi::reflection::AccessPath > | source_paths |
The list of object paths of the source IR node. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "script.printer.LambdaDoc" |
![]() | |
static constexpr const char * | _type_key = "script.printer.ExprDoc" |
![]() | |
static constexpr const char * | _type_key = "script.printer.Doc" |
static constexpr bool | _type_mutable = true |
Doc that represents anonymous function.
LambdaDoc can only have positional arguments without type annotation, and a single expression as body.
|
inlinestatic |
tvm::script::printer::LambdaDocNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | LambdaDocNode | , |
ExprDocNode | |||
) |
|
staticconstexpr |
Array<IdDoc> tvm::script::printer::LambdaDocNode::args |
The arguments of this anonymous function.
ExprDoc tvm::script::printer::LambdaDocNode::body {nullptr} |
The body of this anonymous function.