LLVM API Documentation
Diagnostic information for missed-optimization remarks. More...
#include <DiagnosticInfo.h>
Public Member Functions | |
DiagnosticInfoOptimizationRemarkMissed (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 missed-optimization remarks.
Definition at line 332 of file DiagnosticInfo.h.
llvm::DiagnosticInfoOptimizationRemarkMissed::DiagnosticInfoOptimizationRemarkMissed | ( | 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-missed=, 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 343 of file DiagnosticInfo.h.
static bool llvm::DiagnosticInfoOptimizationRemarkMissed::classof | ( | const DiagnosticInfo * | DI | ) | [inline, static] |
Reimplemented from llvm::DiagnosticInfoOptimizationBase.
Definition at line 349 of file DiagnosticInfo.h.
References llvm::DK_OptimizationRemarkMissed, and llvm::DiagnosticInfo::getKind().
bool DiagnosticInfoOptimizationRemarkMissed::isEnabled | ( | ) | const [override, virtual] |
Implements llvm::DiagnosticInfoOptimizationBase.
Definition at line 161 of file DiagnosticInfo.cpp.
References llvm::DiagnosticInfoOptimizationBase::getPassName().