tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::script::printer::AssertDocObj Class Reference

Doc that represents assert statement. More...

#include <doc.h>

Inheritance diagram for tvm::script::printer::AssertDocObj:
Collaboration diagram for tvm::script::printer::AssertDocObj:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.AssertDoc", AssertDocObj, StmtDocObj)
 
- Public Member Functions inherited from tvm::script::printer::StmtDocObj
 TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.StmtDoc", StmtDocObj, DocObj)
 
- Public Member Functions inherited from tvm::script::printer::DocObj
 TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.Doc", DocObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::printer::StmtDocObj
static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::printer::DocObj
static void RegisterReflection ()
 

Public Attributes

ExprDoc test {ffi::UnsafeInit()}
 The expression to test.
 
ffi::Optional< ExprDoc > msg {std::nullopt}
 The optional error message when assertion failed.
 
- Public Attributes inherited from tvm::script::printer::StmtDocObj
ffi::Optional< ffi::String > comment {std::nullopt}
 The comment of this doc.
 
- Public Attributes inherited from tvm::script::printer::DocObj
ffi::Array< AccessPath > source_paths
 The list of object paths of the source IR node.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::script::printer::DocObj
static constexpr bool _type_mutable = true
 

Detailed Description

Doc that represents assert statement.

See also
AssertDoc

Member Function Documentation

◆ RegisterReflection()

static void tvm::script::printer::AssertDocObj::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::script::printer::AssertDocObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "script.printer.AssertDoc"  ,
AssertDocObj  ,
StmtDocObj   
)

Member Data Documentation

◆ msg

ffi::Optional<ExprDoc> tvm::script::printer::AssertDocObj::msg {std::nullopt}

The optional error message when assertion failed.

◆ test

ExprDoc tvm::script::printer::AssertDocObj::test {ffi::UnsafeInit()}

The expression to test.


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