tvm
|
A frame that represents if statement. More...
#include <frame.h>
Public Member Functions | |
TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.ir_builder.tir.IfFrame", IfFrameNode, TIRFrameNode) | |
void | ExitWithScope () final |
The method called when exiting RAII scope. More... | |
![]() | |
TVM_FFI_DECLARE_OBJECT_INFO ("script.ir_builder.tir.TIRFrame", TIRFrameNode, IRBuilderFrameNode) | |
![]() | |
TVM_FFI_DECLARE_OBJECT_INFO ("script.ir_builder.IRBuilderFrame", IRBuilderFrameNode, runtime::Object) | |
virtual | ~IRBuilderFrameNode ()=default |
Default destructor. More... | |
virtual void | EnterWithScope () |
The method called when entering RAII scope. More... | |
void | AddCallback (ffi::TypedFunction< void()> callback) |
Add a callback method invoked when exiting the RAII scope. More... | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
PrimExpr | condition |
The condition of the if statement. More... | |
ffi::Optional< ffi::Array< tvm::tir::Stmt > > | then_stmts |
The statements in the true branch. More... | |
ffi::Optional< ffi::Array< tvm::tir::Stmt > > | else_stmts |
The stetements in the false branch. More... | |
![]() | |
ffi::Array< tvm::tir::Stmt > | stmts |
The Stmt within in this frame. More... | |
![]() | |
std::vector< ffi::TypedFunction< void()> > | callbacks |
A list of callbacks used when exiting the frame. More... | |
Additional Inherited Members | |
![]() | |
static constexpr const bool | _type_mutable = true |
A frame that represents if statement.
|
finalvirtual |
The method called when exiting RAII scope.
Reimplemented from tvm::script::ir_builder::IRBuilderFrameNode.
|
inlinestatic |
tvm::script::ir_builder::tir::IfFrameNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "script.ir_builder.tir.IfFrame" | , |
IfFrameNode | , | ||
TIRFrameNode | |||
) |
PrimExpr tvm::script::ir_builder::tir::IfFrameNode::condition |
The condition of the if statement.
ffi::Optional<ffi::Array<tvm::tir::Stmt> > tvm::script::ir_builder::tir::IfFrameNode::else_stmts |
The stetements in the false branch.
ffi::Optional<ffi::Array<tvm::tir::Stmt> > tvm::script::ir_builder::tir::IfFrameNode::then_stmts |
The statements in the true branch.