tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::script::printer::ScopeDocNode Class Reference

Doc that represents special scopes. More...

#include <doc.h>

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

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (ScopeDocNode, StmtDocNode)
 
- Public Member Functions inherited from tvm::script::printer::StmtDocNode
 TVM_DECLARE_BASE_OBJECT_INFO (StmtDocNode, DocNode)
 
- Public Member Functions inherited from tvm::script::printer::DocNode
 TVM_DECLARE_BASE_OBJECT_INFO (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

Optional< ExprDoclhs {std::nullopt}
 The name of the scoped variable. More...
 
ExprDoc rhs {nullptr}
 The value of the scoped variable. More...
 
Array< StmtDocbody
 The body of the scope doc. More...
 
- Public Attributes inherited from tvm::script::printer::StmtDocNode
Optional< String > comment {std::nullopt}
 The comment of this doc. More...
 
- Public Attributes inherited from tvm::script::printer::DocNode
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 Public Attributes inherited from tvm::script::printer::StmtDocNode
static constexpr const char * _type_key = "script.printer.StmtDoc"
 
- Static Public Attributes inherited from tvm::script::printer::DocNode
static constexpr const char * _type_key = "script.printer.Doc"
 
static constexpr bool _type_mutable = true
 

Detailed Description

Doc that represents special scopes.

Specifically, this means the with statement in Python:

with 'rhs' as 'lhs': 'body...'

See also
ScopeDoc

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::script::printer::ScopeDocNode::TVM_DECLARE_FINAL_OBJECT_INFO ( ScopeDocNode  ,
StmtDocNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::script::printer::ScopeDocNode::_type_key = "script.printer.ScopeDoc"
staticconstexpr

◆ body

Array<StmtDoc> tvm::script::printer::ScopeDocNode::body

The body of the scope doc.

◆ lhs

Optional<ExprDoc> tvm::script::printer::ScopeDocNode::lhs {std::nullopt}

The name of the scoped variable.

◆ rhs

ExprDoc tvm::script::printer::ScopeDocNode::rhs {nullptr}

The value of the scoped variable.


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