14 #ifndef LLVM_IR_OPTIMIZATIONDIAGNOSTICINFO_H 15 #define LLVM_IR_OPTIMIZATIONDIAGNOSTICINFO_H 56 : F(
Arg.F), BFI(
Arg.BFI) {}
75 void emit(
T RemarkBuilder, decltype(RemarkBuilder()) * =
nullptr) {
82 auto R = RemarkBuilder();
105 std::unique_ptr<BlockFrequencyInfo> OwnedBFI;
116 bool shouldEmitVerbose() {
return BFI !=
nullptr; }
137 std::unique_ptr<OptimizationRemarkEmitter> ORE;
147 assert(ORE &&
"pass not run yet");
167 #endif // LLVM_IR_OPTIMIZATIONDIAGNOSTICINFO_H
This class represents lattice values for constants.
RemarkStreamer * getRemarkStreamer()
Return the streamer used by the backend to save remark diagnostics.
Used to set IsVerbose via the stream interface.
DiagnosticInfoOptimizationBase::setExtraArgs setExtraArgs
DiagnosticInfoOptimizationBase::setIsVerbose setIsVerbose
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
static bool runOnFunction(Function &F, bool PostInlining)
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.
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
LLVMContext & getContext() const
getContext - Return a reference to the LLVMContext associated with this function. ...
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...
bool isAnyRemarkEnabled(StringRef PassName) const
Return true if any type of remarks are enabled for this pass.
API to communicate dependencies between analyses during invalidation.
const DiagnosticHandler * getDiagHandlerPtr() const
getDiagHandlerPtr - Returns const raw pointer of DiagnosticHandler set by setDiagnosticHandler.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
StringRef - Represent a constant reference to a string, i.e.
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...