tvm
|
Doc that represents special scopes. More...
#include <doc.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (ScopeDocNode, StmtDocNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (StmtDocNode, 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 | |
Optional< ExprDoc > | lhs {std::nullopt} |
The name of the scoped variable. More... | |
ExprDoc | rhs {nullptr} |
The value of the scoped variable. More... | |
Array< StmtDoc > | body |
The body of the scope doc. More... | |
![]() | |
Optional< String > | comment {std::nullopt} |
The comment of this doc. 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.ScopeDoc" |
![]() | |
static constexpr const char * | _type_key = "script.printer.StmtDoc" |
![]() | |
static constexpr const char * | _type_key = "script.printer.Doc" |
static constexpr bool | _type_mutable = true |
Doc that represents special scopes.
Specifically, this means the with statement in Python:
with 'rhs' as 'lhs': 'body...'
|
inlinestatic |
tvm::script::printer::ScopeDocNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | ScopeDocNode | , |
StmtDocNode | |||
) |
|
staticconstexpr |
Array<StmtDoc> tvm::script::printer::ScopeDocNode::body |
The body of the scope doc.
Optional<ExprDoc> tvm::script::printer::ScopeDocNode::lhs {std::nullopt} |
The name of the scoped variable.
ExprDoc tvm::script::printer::ScopeDocNode::rhs {nullptr} |
The value of the scoped variable.