13 #ifndef LLVM_IR_DIAGNOSTICHANDLER_H 14 #define LLVM_IR_DIAGNOSTICHANDLER_H 28 : DiagnosticContext(DiagContext) {}
44 if (DiagHandlerCallback) {
75 #endif // LLVM_IR_DIAGNOSTICHANDLER_H This is the base class for diagnostic handling in LLVM.
This class represents lattice values for constants.
virtual ~DiagnosticHandler()=default
void(*)(const DiagnosticInfo &DI, void *Context) DiagnosticHandlerTy
This is the base abstract class for diagnostic reporting in the backend.
virtual bool isMissedOptRemarkEnabled(StringRef PassName) const
Return true if missed optimization remarks are enabled, override to provide different implementation...
DiagnosticHandler(void *DiagContext=nullptr)
virtual bool isPassedOptRemarkEnabled(StringRef PassName) const
Return true if passed optimization remarks are enabled, override to provide different implementation...
virtual bool isAnalysisRemarkEnabled(StringRef PassName) const
Return true if analysis remarks are enabled, override to provide different implementation.
virtual bool isAnyRemarkEnabled() const
Return true if any type of remarks are enabled for any pass.
DiagnosticHandlerTy DiagHandlerCallback
DiagHandlerCallback is settable from the C API and base implementation of DiagnosticHandler will call...
bool isAnyRemarkEnabled(StringRef PassName) const
Return true if any type of remarks are enabled for this pass.
virtual bool handleDiagnostics(const DiagnosticInfo &DI)
Override handleDiagnostics to provide custom implementation.
StringRef - Represent a constant reference to a string, i.e.