Doc that represents assign statement.
More...
#include <doc.h>
|
| ExprDoc | lhs {ffi::UnsafeInit()} |
| | The left hand side of the assignment.
|
| |
| ffi::Optional< ExprDoc > | rhs |
| | The right hand side of the assignment.
|
| |
| ffi::Optional< ExprDoc > | annotation |
| | The type annotation of this assignment.
|
| |
| ffi::Optional< ffi::String > | comment {std::nullopt} |
| | The comment of this doc.
|
| |
| ffi::Array< AccessPath > | source_paths |
| | The list of object paths of the source IR node.
|
| |
Doc that represents assign statement.
- See also
- AssignDoc
◆ 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 |
|
|
) |
| |
◆ 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:
- include/tvm/script/printer/doc.h