tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static 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_DECLARE_FINAL_OBJECT_INFO (IfDocNode, StmtDocNode)
 
- Public Member Functions inherited from tvm::script::printer::StmtDocNode
 TVM_DECLARE_BASE_OBJECT_INFO (StmtDocNode, DocNode)
 
- Public Member Functions inherited from tvm::script::printer::DocNode
 TVM_DECLARE_BASE_OBJECT_INFO (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 {nullptr}
 The predicate of the if-then-else statement. More...
 
Array< StmtDocthen_branch
 The then branch of the if-then-else statement. More...
 
Array< StmtDocelse_branch
 The else branch of the if-then-else statement. More...
 
- Public Attributes inherited from tvm::script::printer::StmtDocNode
Optional< String > comment {std::nullopt}
 The comment of this doc. More...
 
- Public Attributes inherited from tvm::script::printer::DocNode
Array< ffi::reflection::AccessPath > source_paths
 The list of object paths of the source IR node. More...
 

Static Public Attributes

static constexpr const char * _type_key = "script.printer.IfDoc"
 
- Static Public Attributes inherited from tvm::script::printer::StmtDocNode
static constexpr const char * _type_key = "script.printer.StmtDoc"
 
- Static Public Attributes inherited from tvm::script::printer::DocNode
static constexpr const char * _type_key = "script.printer.Doc"
 
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_DECLARE_FINAL_OBJECT_INFO()

tvm::script::printer::IfDocNode::TVM_DECLARE_FINAL_OBJECT_INFO ( IfDocNode  ,
StmtDocNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::script::printer::IfDocNode::_type_key = "script.printer.IfDoc"
staticconstexpr

◆ else_branch

Array<StmtDoc> tvm::script::printer::IfDocNode::else_branch

The else branch of the if-then-else statement.

◆ predicate

ExprDoc tvm::script::printer::IfDocNode::predicate {nullptr}

The predicate of the if-then-else statement.

◆ then_branch

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: