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

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

#include <stmt.h>

Inheritance diagram for tvm::tirx::AssertStmtNode:
Collaboration diagram for tvm::tirx::AssertStmtNode:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tirx.AssertStmt", AssertStmtNode, StmtNode)
 
- Public Member Functions inherited from tvm::tirx::StmtNode
 StmtNode ()=default
 
 StmtNode (Span span)
 
 TVM_OBJECT_ENABLE_SCRIPT_PRINTER ()
 
 TVM_FFI_DECLARE_OBJECT_INFO ("tirx.Stmt", StmtNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::tirx::StmtNode
static void RegisterReflection ()
 

Public Attributes

PrimExpr condition
 Condition to be checked. More...
 
StringImm error_kind
 The error kind, e.g. "RuntimeError", "TypeError", "ValueError". More...
 
ffi::Array< StringImmmessage_parts
 Error message fragments, concatenated at runtime when assertion fails. More...
 
- Public Attributes inherited from tvm::tirx::StmtNode
Span span
 Span that points to the original source code. Reserved debug information. More...
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::tirx::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.

The error is described by:

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

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

Member Data Documentation

◆ condition

PrimExpr tvm::tirx::AssertStmtNode::condition

Condition to be checked.

◆ error_kind

StringImm tvm::tirx::AssertStmtNode::error_kind

The error kind, e.g. "RuntimeError", "TypeError", "ValueError".

◆ message_parts

ffi::Array<StringImm> tvm::tirx::AssertStmtNode::message_parts

Error message fragments, concatenated at runtime when assertion fails.


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