tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::tir::AssertStmtNode Class Reference

Assert condition, if an error occurs, return the error message. More...

#include <stmt.h>

Inheritance diagram for tvm::tir::AssertStmtNode:
Collaboration diagram for tvm::tir::AssertStmtNode:

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (AssertStmtNode, StmtNode)
 
- Public Member Functions inherited from tvm::tir::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 Public Member Functions inherited from tvm::tir::StmtNode
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...
 
- Public Attributes inherited from tvm::tir::StmtNode
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 Public Attributes inherited from tvm::tir::StmtNode
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
 

Detailed Description

Assert condition, if an error occurs, return the error message.

Member Function Documentation

◆ RegisterReflection()

static void tvm::tir::AssertStmtNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::tir::AssertStmtNode::TVM_DECLARE_FINAL_OBJECT_INFO ( AssertStmtNode  ,
StmtNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::tir::AssertStmtNode::_type_key = "tir.AssertStmt"
staticconstexpr

◆ body

Stmt tvm::tir::AssertStmtNode::body

Body which this assertion holds true. Will be executed after the assertion.

◆ condition

PrimExpr tvm::tir::AssertStmtNode::condition

Condition to be checked.

◆ message

PrimExpr tvm::tir::AssertStmtNode::message

Error message when assertion failed.


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