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

A compiler diagnostic message. More...

#include <diagnostic.h>

Inheritance diagram for tvm::DiagnosticNode:
Collaboration diagram for tvm::DiagnosticNode:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("Diagnostic", DiagnosticNode, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 

Public Attributes

DiagnosticLevel level
 The level. More...
 
Span span
 The span at which to report an error. More...
 
ffi::ObjectRef loc
 The object location at which to report an error. More...
 
ffi::String message
 The diagnostic message. More...
 
ffi::String error_kind {"InternalError"}
 The error kind when the diagnostic is used as an error (e.g. "TypeError"). More...
 

Static Public Attributes

static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 

Detailed Description

A compiler diagnostic message.

Member Function Documentation

◆ RegisterReflection()

static void tvm::DiagnosticNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::DiagnosticNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "Diagnostic"  ,
DiagnosticNode  ,
ffi::Object   
)

Member Data Documentation

◆ _type_s_eq_hash_kind

constexpr TVMFFISEqHashKind tvm::DiagnosticNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
staticconstexpr

◆ error_kind

ffi::String tvm::DiagnosticNode::error_kind {"InternalError"}

The error kind when the diagnostic is used as an error (e.g. "TypeError").

◆ level

DiagnosticLevel tvm::DiagnosticNode::level

The level.

◆ loc

ffi::ObjectRef tvm::DiagnosticNode::loc

The object location at which to report an error.

The object loc provides a location when span is not always available during transformation. The error reporter can still pick up loc->span if necessary.

◆ message

ffi::String tvm::DiagnosticNode::message

The diagnostic message.

◆ span

Span tvm::DiagnosticNode::span

The span at which to report an error.


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