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

Doc that represents for statement. More...

#include <doc.h>

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

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (ForDocNode, 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 lhs {nullptr}
 The left hand side of the assignment of iterating variable. More...
 
ExprDoc rhs {nullptr}
 The right hand side of the assignment of iterating variable. More...
 
Array< StmtDocbody
 The body of the for 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.ForDoc"
 
- 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 represents for statement.

Example: for 'lhs' in 'rhs': 'body...'

See also
ForDoc

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

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

Member Data Documentation

◆ _type_key

constexpr const char* tvm::script::printer::ForDocNode::_type_key = "script.printer.ForDoc"
staticconstexpr

◆ body

Array<StmtDoc> tvm::script::printer::ForDocNode::body

The body of the for statement.

◆ lhs

ExprDoc tvm::script::printer::ForDocNode::lhs {nullptr}

The left hand side of the assignment of iterating variable.

◆ rhs

ExprDoc tvm::script::printer::ForDocNode::rhs {nullptr}

The right hand side of the assignment of iterating variable.


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