|
tvm
|
Doc that represents function definition. More...
#include <doc.h>
Public Member Functions | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.FunctionDoc", FunctionDocNode, StmtDocNode) | |
Public Member Functions inherited from tvm::script::printer::StmtDocNode | |
| TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.StmtDoc", StmtDocNode, 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::StmtDocNode | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::script::printer::DocNode | |
| static void | RegisterReflection () |
Public Attributes | |
| IdDoc | name {ffi::UnsafeInit{}} |
| The name of function. More... | |
| ffi::Array< AssignDoc > | args |
| The arguments of function. More... | |
| ffi::Array< ExprDoc > | decorators |
| Decorators of function. More... | |
| ffi::Optional< ExprDoc > | return_type {std::nullopt} |
| The return type of function. More... | |
| ffi::Array< StmtDoc > | body |
| The body of function. More... | |
Public Attributes inherited from tvm::script::printer::StmtDocNode | |
| ffi::Optional< ffi::String > | comment {std::nullopt} |
| The comment of this doc. More... | |
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... | |
Additional Inherited Members | |
Static Public Attributes inherited from tvm::script::printer::DocNode | |
| static constexpr bool | _type_mutable = true |
Doc that represents function definition.
|
inlinestatic |
| tvm::script::printer::FunctionDocNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "script.printer.FunctionDoc" | , |
| FunctionDocNode | , | ||
| StmtDocNode | |||
| ) |
| ffi::Array<AssignDoc> tvm::script::printer::FunctionDocNode::args |
The arguments of function.
The lhs means argument name, annotation means argument type, and rhs means default value.
| ffi::Array<StmtDoc> tvm::script::printer::FunctionDocNode::body |
The body of function.
| ffi::Array<ExprDoc> tvm::script::printer::FunctionDocNode::decorators |
Decorators of function.
| IdDoc tvm::script::printer::FunctionDocNode::name {ffi::UnsafeInit{}} |
The name of function.
| ffi::Optional<ExprDoc> tvm::script::printer::FunctionDocNode::return_type {std::nullopt} |
The return type of function.