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

Doc that represent if-then-else statement. More...

#include <doc.h>

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

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.IfDoc", IfDocNode, 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 predicate {ffi::UnsafeInit()}
 The predicate of the if-then-else statement. More...
 
ffi::Array< StmtDocthen_branch
 The then branch of the if-then-else statement. More...
 
ffi::Array< StmtDocelse_branch
 The else branch of the if-then-else statement. 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 represent if-then-else statement.

See also
IfDoc

Member Function Documentation

◆ 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   
)

Member Data Documentation

◆ 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: