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_DECLARE_FINAL_OBJECT_INFO (DiagnosticNode, 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...
 
ObjectRef loc
 The object location at which to report an error. More...
 
String message
 The diagnostic message. More...
 

Static Public Attributes

static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr const char * _type_key = "Diagnostic"
 

Detailed Description

A compiler diagnostic message.

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::DiagnosticNode::TVM_DECLARE_FINAL_OBJECT_INFO ( DiagnosticNode  ,
Object   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::DiagnosticNode::_type_key = "Diagnostic"
staticconstexpr

◆ _type_s_eq_hash_kind

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

◆ level

DiagnosticLevel tvm::DiagnosticNode::level

The level.

◆ loc

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

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: