|
LLVM
5.0.0
|
The optimization diagnostic interface. More...
#include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h"
Public Member Functions | |
| MachineOptimizationRemarkEmitter (MachineFunction &MF, MachineBlockFrequencyInfo *MBFI) | |
| void | emit (DiagnosticInfoOptimizationBase &OptDiag) |
| Emit an optimization remark. More... | |
| bool | allowExtraAnalysis () const |
| Whether we allow for extra compile-time budget to perform more analysis to be more informative. More... | |
The optimization diagnostic interface.
It allows reporting when optimizations are performed and when they are not along with the reasons for it. Hotness information of the corresponding code region can be included in the remark if DiagnosticsHotnessRequested is enabled in the LLVM context.
Definition at line 139 of file MachineOptimizationRemarkEmitter.h.
|
inline |
Definition at line 141 of file MachineOptimizationRemarkEmitter.h.
|
inline |
Whether we allow for extra compile-time budget to perform more analysis to be more informative.
This is useful to enable additional missed optimizations to be reported that are normally too noisy. In this mode, we can use the extra analysis (1) to filter trivial false positives or (2) to provide more context so that non-trivial false positives can be quickly detected by the user.
Definition at line 155 of file MachineOptimizationRemarkEmitter.h.
References llvm::Function::getContext(), llvm::LLVMContext::getDiagnosticsOutputFile(), and llvm::MachineFunction::getFunction().
| void MachineOptimizationRemarkEmitter::emit | ( | DiagnosticInfoOptimizationBase & | OptDiag | ) |
Emit an optimization remark.
Definition at line 49 of file MachineOptimizationRemarkEmitter.cpp.
References llvm::LLVMContext::diagnose(), llvm::LLVMContext::getDiagnosticsHotnessThreshold(), llvm::LLVMContext::getDiagnosticsOutputFile(), and P.
Referenced by llvm::AsmPrinter::EmitFunctionBody(), and llvm::reportGISelFailure().
1.8.6