15 #ifndef LLVM_IR_OPTIMIZATIONDIAGNOSTICINFO_H
16 #define LLVM_IR_OPTIMIZATIONDIAGNOSTICINFO_H
58 : F(Arg.F), BFI(Arg.BFI) {}
96 std::unique_ptr<BlockFrequencyInfo> OwnedBFI;
107 bool shouldEmitVerbose() {
return BFI !=
nullptr; }
128 std::unique_ptr<OptimizationRemarkEmitter> ORE;
138 assert(ORE &&
"pass not run yet");
164 #endif // LLVM_IR_OPTIMIZATIONDIAGNOSTICINFO_H
LLVMContext & getContext() const
getContext - Return a reference to the LLVMContext associated with this function. ...
Used to set IsVerbose via the stream interface.
This class should be specialized by any type that needs to be converted to/from a YAML mapping...
DiagnosticInfoOptimizationBase::setExtraArgs setExtraArgs
DiagnosticInfoOptimizationBase::setIsVerbose setIsVerbose
yaml::Output * getDiagnosticsOutputFile()
Return the YAML file used by the backend to save optimization diagnostics.
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
A set of analyses that are preserved following a run of a transformation pass.
A CRTP mix-in that provides informational APIs needed for analysis passes.
Represent the analysis usage information of a pass.
Common features for diagnostics dealing with optimization remarks that are used by IR passes...
FunctionPass class - This class is used to implement most global optimizations.
Used in the streaming interface as the general argument type.
print lazy value Lazy Value Info Printer Pass
Common features for diagnostics dealing with optimization remarks that are used by both IR and MIR pa...
API to communicate dependencies between analyses during invalidation.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.
A special type used by analysis passes to provide an address that identifies that particular analysis...