tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::script::ir_builder::ir::StmtFrameObj Class Reference

A shared frame containing a sequence of core IR statements. More...

#include <frame.h>

Inheritance diagram for tvm::script::ir_builder::ir::StmtFrameObj:
Collaboration diagram for tvm::script::ir_builder::ir::StmtFrameObj:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO ("script.ir_builder.StmtFrame", StmtFrameObj, IRBuilderFrameObj)
 
- Public Member Functions inherited from tvm::script::ir_builder::IRBuilderFrameObj
 IRBuilderFrameObj ()
 Capture the source-call context when this frame is constructed.
 
 TVM_FFI_DECLARE_OBJECT_INFO ("script.ir_builder.IRBuilderFrame", IRBuilderFrameObj, ffi::Object)
 
virtual ~IRBuilderFrameObj ()=default
 Default destructor.
 
virtual void EnterWithScope ()
 The method called when entering RAII scope.
 
virtual void ExitWithScope ()
 The method called when exiting RAII scope.
 
void AddCallback (ffi::TypedFunction< void()> callback)
 Add a callback method invoked when exiting the RAII scope.
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::ir_builder::IRBuilderFrameObj
static void RegisterReflection ()
 

Public Attributes

ffi::Array< tvm::Stmt > stmts
 The statements within this frame.
 
- Public Attributes inherited from tvm::script::ir_builder::IRBuilderFrameObj
std::vector< ffi::TypedFunction< void()> > callbacks
 A list of callbacks used when exiting the frame.
 
Location loc = UnknownLoc()
 Source context retained until this frame constructs its result.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::script::ir_builder::IRBuilderFrameObj
static constexpr const bool _type_mutable = true
 

Detailed Description

A shared frame containing a sequence of core IR statements.

Member Function Documentation

◆ RegisterReflection()

static void tvm::script::ir_builder::ir::StmtFrameObj::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO()

tvm::script::ir_builder::ir::StmtFrameObj::TVM_FFI_DECLARE_OBJECT_INFO ( "script.ir_builder.StmtFrame"  ,
StmtFrameObj  ,
IRBuilderFrameObj   
)

Member Data Documentation

◆ stmts

ffi::Array<tvm::Stmt> tvm::script::ir_builder::ir::StmtFrameObj::stmts

The statements within this frame.


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