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

Sequence statement. More...

#include <stmt.h>

Inheritance diagram for tvm::SeqStmt:
Collaboration diagram for tvm::SeqStmt:

Public Member Functions

TVM_TIRX_DLL SeqStmt (ffi::Array< Stmt > seq, Location loc=UnknownLoc())
 Construct SeqStmt.
 
TVM_TIRX_DLL SeqStmt (Stmt stmt, ffi::Optional< Location > loc=std::nullopt)
 Wrap a statement, reusing an existing sequence when possible.
 
 SeqStmt (std::initializer_list< Stmt > seq, Location loc=UnknownLoc())
 
size_t size () const
 
Stmt operator[] (size_t index) const
 Get the index-th element in the sequence.
 
 SeqStmt (ffi::ObjectPtr< SeqStmtNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (SeqStmt, Stmt, SeqStmtNode)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (SeqStmtNode)
 
- Public Member Functions inherited from tvm::Stmt
 Stmt (ffi::ObjectPtr< StmtNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Stmt, ffi::ObjectRef, StmtNode)
 

Detailed Description

Sequence statement.

Constructor & Destructor Documentation

◆ SeqStmt() [1/4]

TVM_TIRX_DLL tvm::SeqStmt::SeqStmt ( ffi::Array< Stmt >  seq,
Location  loc = UnknownLoc() 
)
explicit

Construct SeqStmt.

Parameters
seqThe sequence.
locThe location of this object in the source code.

◆ SeqStmt() [2/4]

TVM_TIRX_DLL tvm::SeqStmt::SeqStmt ( Stmt  stmt,
ffi::Optional< Location >  loc = std::nullopt 
)

Wrap a statement, reusing an existing sequence when possible.

◆ SeqStmt() [3/4]

tvm::SeqStmt::SeqStmt ( std::initializer_list< Stmt >  seq,
Location  loc = UnknownLoc() 
)
inline

◆ SeqStmt() [4/4]

tvm::SeqStmt::SeqStmt ( ffi::ObjectPtr< SeqStmtNode >  node)
inlineexplicit

Member Function Documentation

◆ operator[]()

Stmt tvm::SeqStmt::operator[] ( size_t  index) const
inline

Get the index-th element in the sequence.

◆ size()

size_t tvm::SeqStmt::size ( ) const
inline
Returns
get the size of the sequence

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::SeqStmt::TVM_DEFINE_OBJECT_REF_COW_METHOD ( SeqStmtNode  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::SeqStmt::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( SeqStmt  ,
Stmt  ,
SeqStmtNode   
)

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