Doc that represent if-then-else statement.
More...
#include <doc.h>
|
| ExprDoc | predicate {ffi::UnsafeInit()} |
| | The predicate of the if-then-else statement.
|
| |
| ffi::Array< StmtDoc > | then_branch |
| | The then branch of the if-then-else statement.
|
| |
| ffi::Array< StmtDoc > | else_branch |
| | The else branch of the if-then-else statement.
|
| |
| 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 represent if-then-else statement.
- See also
- IfDoc
◆ RegisterReflection()
| static void tvm::script::printer::IfDocNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::script::printer::IfDocNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"script.printer.IfDoc" |
, |
|
|
IfDocNode |
, |
|
|
StmtDocNode |
|
|
) |
| |
◆ else_branch
| ffi::Array<StmtDoc> tvm::script::printer::IfDocNode::else_branch |
The else branch of the if-then-else statement.
◆ predicate
| ExprDoc tvm::script::printer::IfDocNode::predicate {ffi::UnsafeInit()} |
The predicate of the if-then-else statement.
◆ then_branch
| ffi::Array<StmtDoc> tvm::script::printer::IfDocNode::then_branch |
The then branch of the if-then-else statement.
The documentation for this class was generated from the following file:
- include/tvm/script/printer/doc.h