tvm
|
Doc that represents special scopes. More...
#include <doc.h>
Public Member Functions | |
TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.ScopeDoc", ScopeDocNode, StmtDocNode) | |
![]() | |
TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.StmtDoc", StmtDocNode, DocNode) | |
![]() | |
TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.Doc", DocNode, Object) | |
virtual | ~DocNode ()=default |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
ffi::Optional< ExprDoc > | lhs {std::nullopt} |
The name of the scoped variable. More... | |
ExprDoc | rhs {ffi::UnsafeInit()} |
The value of the scoped variable. More... | |
ffi::Array< StmtDoc > | body |
The body of the scope doc. More... | |
![]() | |
ffi::Optional< ffi::String > | comment {std::nullopt} |
The comment of this doc. More... | |
![]() | |
ffi::Array< ffi::reflection::AccessPath > | source_paths |
The list of object paths of the source IR node. More... | |
Additional Inherited Members | |
![]() | |
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_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "script.printer.ScopeDoc" | , |
ScopeDocNode | , | ||
StmtDocNode | |||
) |
ffi::Array<StmtDoc> tvm::script::printer::ScopeDocNode::body |
The body of the scope doc.
ffi::Optional<ExprDoc> tvm::script::printer::ScopeDocNode::lhs {std::nullopt} |
The name of the scoped variable.
ExprDoc tvm::script::printer::ScopeDocNode::rhs {ffi::UnsafeInit()} |
The value of the scoped variable.