tvm
Public Member Functions | Static Public Member Functions | 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_FFI_DECLARE_OBJECT_INFO_FINAL ("tir.AssertStmt", AssertStmtNode, StmtNode)
 
- Public Member Functions inherited from tvm::tir::StmtNode
 StmtNode ()=default
 
 StmtNode (Span span)
 
 TVM_OBJECT_ENABLE_SCRIPT_PRINTER ()
 
 TVM_FFI_DECLARE_OBJECT_INFO ("tir.Stmt", 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...
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::tir::StmtNode
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_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::tir::AssertStmtNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "tir.AssertStmt"  ,
AssertStmtNode  ,
StmtNode   
)

Member Data Documentation

◆ 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: