tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::WhileNode Class Reference

A While loop. More...

#include <stmt.h>

Inheritance diagram for tvm::WhileNode:
Collaboration diagram for tvm::WhileNode:

Public Member Functions

 WhileNode (ffi::UnsafeInit tag)
 
 WhileNode (PrimExpr condition, SeqStmt body)
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.While", WhileNode, StmtNode)
 
- Public Member Functions inherited from tvm::StmtNode
 StmtNode ()=default
 
 StmtNode (Location loc)
 
 TVM_FFI_DECLARE_OBJECT_INFO ("ir.Stmt", StmtNode, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::StmtNode
static void RegisterReflection ()
 

Public Attributes

PrimExpr condition
 The termination condition.
 
SeqStmt body
 The body of the while loop.
 
- Public Attributes inherited from tvm::StmtNode
Location loc = UnknownLoc()
 Location that points to the original source code. Reserved debug information.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::StmtNode
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr bool _type_s_eq_hash_subclass_kind_fixed = true
 
static constexpr const uint32_t _type_child_slots = 15
 

Detailed Description

A While loop.

while (condition)
SeqStmt body
The body of the while loop.
Definition stmt.h:543
PrimExpr condition
The termination condition.
Definition stmt.h:541

Constructor & Destructor Documentation

◆ WhileNode() [1/2]

tvm::WhileNode::WhileNode ( ffi::UnsafeInit  tag)
inlineexplicit

◆ WhileNode() [2/2]

tvm::WhileNode::WhileNode ( PrimExpr  condition,
SeqStmt  body 
)
inline

Member Function Documentation

◆ RegisterReflection()

static void tvm::WhileNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::WhileNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.While"  ,
WhileNode  ,
StmtNode   
)

Member Data Documentation

◆ body

SeqStmt tvm::WhileNode::body

The body of the while loop.

◆ condition

PrimExpr tvm::WhileNode::condition

The termination condition.


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