LLVM API Documentation
Diagnostic information for optimization analysis remarks. More...
#include <DiagnosticInfo.h>
Public Member Functions | |
DiagnosticInfoOptimizationRemarkAnalysis (const char *PassName, const Function &Fn, const DebugLoc &DLoc, const Twine &Msg) | |
bool | isEnabled () const override |
Static Public Member Functions | |
static bool | classof (const DiagnosticInfo *DI) |
Diagnostic information for optimization analysis remarks.
Definition at line 358 of file DiagnosticInfo.h.
llvm::DiagnosticInfoOptimizationRemarkAnalysis::DiagnosticInfoOptimizationRemarkAnalysis | ( | const char * | PassName, |
const Function & | Fn, | ||
const DebugLoc & | DLoc, | ||
const Twine & | Msg | ||
) | [inline] |
PassName
is the name of the pass emitting this diagnostic. If this name matches the regular expression given in -Rpass-analysis=, then the diagnostic will be emitted. Fn
is the function where the diagnostic is being emitted. DLoc
is the location information to use in the diagnostic. If line table information is available, the diagnostic will include the source code location. Msg
is the message to show. Note that this class does not copy this message, so this reference must be valid for the whole life time of the diagnostic.
Definition at line 369 of file DiagnosticInfo.h.
static bool llvm::DiagnosticInfoOptimizationRemarkAnalysis::classof | ( | const DiagnosticInfo * | DI | ) | [inline, static] |
Reimplemented from llvm::DiagnosticInfoOptimizationBase.
Definition at line 376 of file DiagnosticInfo.h.
References llvm::DK_OptimizationRemarkAnalysis, and llvm::DiagnosticInfo::getKind().
bool DiagnosticInfoOptimizationRemarkAnalysis::isEnabled | ( | ) | const [override, virtual] |
Implements llvm::DiagnosticInfoOptimizationBase.
Definition at line 166 of file DiagnosticInfo.cpp.
References llvm::DiagnosticInfoOptimizationBase::getPassName().