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

Doc that represents assign statement. More...

#include <doc.h>

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

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.AssignDoc", AssignDocNode, 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

ExprDoc lhs {ffi::UnsafeInit()}
 The left hand side of the assignment. More...
 
ffi::Optional< ExprDocrhs
 The right hand side of the assignment. More...
 
ffi::Optional< ExprDocannotation
 The type annotation of this assignment. 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
 

Detailed Description

Doc that represents assign statement.

See also
AssignDoc

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::script::printer::AssignDocNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "script.printer.AssignDoc"  ,
AssignDocNode  ,
StmtDocNode   
)

Member Data Documentation

◆ annotation

ffi::Optional<ExprDoc> tvm::script::printer::AssignDocNode::annotation

The type annotation of this assignment.

◆ lhs

ExprDoc tvm::script::printer::AssignDocNode::lhs {ffi::UnsafeInit()}

The left hand side of the assignment.

◆ rhs

ffi::Optional<ExprDoc> tvm::script::printer::AssignDocNode::rhs

The right hand side of the assignment.

If null, this doc represents declaration, e.g. A: T.Buffer((1,2))


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