tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::script::printer::ScopeDocObj Class Reference

Doc that represents special scopes. More...

#include <doc.h>

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

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.ScopeDoc", ScopeDocObj, StmtDocObj)
 
- Public Member Functions inherited from tvm::script::printer::StmtDocObj
 TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.StmtDoc", StmtDocObj, DocObj)
 
- Public Member Functions inherited from tvm::script::printer::DocObj
 TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.Doc", DocObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::printer::StmtDocObj
static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::printer::DocObj
static void RegisterReflection ()
 

Public Attributes

ffi::Optional< ExprDoc > lhs {std::nullopt}
 The name of the scoped variable.
 
ExprDoc rhs {ffi::UnsafeInit()}
 The value of the scoped variable.
 
ffi::Array< StmtDoc > body
 The body of the scope doc.
 
bool allow_concise_scoping {false}
 Whether a tail-position renderer may spell this scope concisely.
 
- Public Attributes inherited from tvm::script::printer::StmtDocObj
ffi::Optional< ffi::String > comment {std::nullopt}
 The comment of this doc.
 
- Public Attributes inherited from tvm::script::printer::DocObj
ffi::Array< AccessPath > source_paths
 The list of object paths of the source IR node.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::script::printer::DocObj
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::ScopeDocObj::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::script::printer::ScopeDocObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "script.printer.ScopeDoc"  ,
ScopeDocObj  ,
StmtDocObj   
)

Member Data Documentation

◆ allow_concise_scoping

bool tvm::script::printer::ScopeDocObj::allow_concise_scoping {false}

Whether a tail-position renderer may spell this scope concisely.

◆ body

ffi::Array<StmtDoc> tvm::script::printer::ScopeDocObj::body

The body of the scope doc.

◆ lhs

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

The name of the scoped variable.

◆ rhs

ExprDoc tvm::script::printer::ScopeDocObj::rhs {ffi::UnsafeInit()}

The value of the scoped variable.


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