LLVM API Documentation

Classes | Namespaces | Enumerations | Functions
DiagnosticInfo.h File Reference
#include "llvm-c/Core.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Casting.h"
Include dependency graph for DiagnosticInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::DiagnosticInfo
 This is the base abstract class for diagnostic reporting in the backend. The print method must be overloaded by the subclasses to print a user-friendly message in the client of the backend (let us call it a frontend). More...
class  llvm::DiagnosticInfoInlineAsm
class  llvm::DiagnosticInfoStackSize
class  llvm::DiagnosticInfoDebugMetadataVersion
class  llvm::DiagnosticInfoSampleProfile
 Diagnostic information for the sample profiler. More...
class  llvm::DiagnosticInfoOptimizationBase
 Common features for diagnostics dealing with optimization remarks. More...
class  llvm::DiagnosticInfoOptimizationRemark
 Diagnostic information for applied optimization remarks. More...
class  llvm::DiagnosticInfoOptimizationRemarkMissed
 Diagnostic information for missed-optimization remarks. More...
class  llvm::DiagnosticInfoOptimizationRemarkAnalysis
 Diagnostic information for optimization analysis remarks. More...
class  llvm::DiagnosticInfoOptimizationFailure
 Diagnostic information for optimization failures. More...

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


Enumerations

enum  llvm::DiagnosticSeverity { llvm::DS_Error, llvm::DS_Warning, llvm::DS_Remark, llvm::DS_Note }
 Defines the different supported severity of a diagnostic. More...
enum  llvm::DiagnosticKind {
  llvm::DK_InlineAsm, llvm::DK_StackSize, llvm::DK_DebugMetadataVersion, llvm::DK_SampleProfile,
  llvm::DK_OptimizationRemark, llvm::DK_OptimizationRemarkMissed, llvm::DK_OptimizationRemarkAnalysis, llvm::DK_OptimizationFailure,
  llvm::DK_FirstPluginKind
}
 Defines the different supported kind of a diagnostic. This enum should be extended with a new ID for each added concrete subclass. More...

Functions

int llvm::getNextAvailablePluginDiagnosticKind ()
 Get the next available kind ID for a plugin diagnostic. Each time this function is called, it returns a different number. Therefore, a plugin that wants to "identify" its own classes with a dynamic identifier, just have to use this method to get a new ID and assign it to each of its classes. The returned ID will be greater than or equal to DK_FirstPluginKind. Thus, the plugin identifiers will not conflict with the DiagnosticKind values.
void llvm::emitOptimizationRemark (LLVMContext &Ctx, const char *PassName, const Function &Fn, const DebugLoc &DLoc, const Twine &Msg)
void llvm::emitOptimizationRemarkMissed (LLVMContext &Ctx, const char *PassName, const Function &Fn, const DebugLoc &DLoc, const Twine &Msg)
void llvm::emitOptimizationRemarkAnalysis (LLVMContext &Ctx, const char *PassName, const Function &Fn, const DebugLoc &DLoc, const Twine &Msg)
void llvm::emitLoopVectorizeWarning (LLVMContext &Ctx, const Function &Fn, const DebugLoc &DLoc, const Twine &Msg)
void llvm::emitLoopInterleaveWarning (LLVMContext &Ctx, const Function &Fn, const DebugLoc &DLoc, const Twine &Msg)