tvm
|
Assert condition, if an error occurs, return the error message. More...
#include <stmt.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (AssertStmtNode, StmtNode) | |
![]() | |
StmtNode ()=default | |
StmtNode (Span span) | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_DECLARE_BASE_OBJECT_INFO (StmtNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
PrimExpr | condition |
Condition to be checked. More... | |
PrimExpr | message |
Error message when assertion failed. More... | |
Stmt | body |
Body which this assertion holds true. Will be executed after the assertion. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "tir.AssertStmt" |
![]() | |
static constexpr const char * | _type_key = "tir.Stmt" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const uint32_t | _type_child_slots = 15 |
Assert condition, if an error occurs, return the error message.
|
inlinestatic |
tvm::tir::AssertStmtNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | AssertStmtNode | , |
StmtNode | |||
) |
|
staticconstexpr |
Stmt tvm::tir::AssertStmtNode::body |
Body which this assertion holds true. Will be executed after the assertion.
PrimExpr tvm::tir::AssertStmtNode::condition |
Condition to be checked.
PrimExpr tvm::tir::AssertStmtNode::message |
Error message when assertion failed.