tvm
|
A frame that represents the assert statement. Proceeds if the condition is true, otherwise aborts with the message. More...
#include <frame.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (AssertFrameNode, TIRFrameNode) | |
void | ExitWithScope () final |
The method called when exiting RAII scope. More... | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (TIRFrameNode, IRBuilderFrameNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (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 PrimExpr to test. More... | |
PrimExpr | message |
The output error message when the assertion failed. More... | |
![]() | |
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... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "script.ir_builder.tir.AssertFrame" |
![]() | |
static constexpr const char * | _type_key = "script.ir_builder.tir.TIRFrame" |
![]() | |
static constexpr const char * | _type_key = "script.ir_builder.IRBuilderFrame" |
A frame that represents the assert statement. Proceeds if the condition is true, otherwise aborts with the message.
|
finalvirtual |
The method called when exiting RAII scope.
Reimplemented from tvm::script::ir_builder::IRBuilderFrameNode.
|
inlinestatic |
tvm::script::ir_builder::tir::AssertFrameNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | AssertFrameNode | , |
TIRFrameNode | |||
) |
|
staticconstexpr |
PrimExpr tvm::script::ir_builder::tir::AssertFrameNode::message |
The output error message when the assertion failed.