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