13 #ifndef LLVM_TRANSFORM_UTILS_DEBUGIFY_H 14 #define LLVM_TRANSFORM_UTILS_DEBUGIFY_H 30 unsigned NumDbgValuesMissing = 0;
33 unsigned NumDbgValuesExpected = 0;
36 unsigned NumDbgLocsMissing = 0;
39 unsigned NumDbgLocsExpected = 0;
43 return float(NumDbgValuesMissing) / float(NumDbgLocsExpected);
48 return float(NumDbgLocsMissing) / float(NumDbgLocsExpected);
70 #endif // LLVM_TRANSFORM_UTILS_DEBUGIFY_H
Track how much debugify information has been lost.
A Module instance is used to store all the information related to an LLVM module. ...
This class implements a map that also provides access to all stored values in a deterministic order...
llvm::FunctionPass * createCheckDebugifyFunctionPass(bool Strip=false, llvm::StringRef NameOfWrappedPass="", DebugifyStatsMap *StatsMap=nullptr)
llvm::ModulePass * createDebugifyModulePass()
llvm::PreservedAnalyses run(llvm::Module &M, llvm::ModuleAnalysisManager &AM)
llvm::ModulePass * createCheckDebugifyModulePass(bool Strip=false, llvm::StringRef NameOfWrappedPass="", DebugifyStatsMap *StatsMap=nullptr)
A CRTP mix-in to automatically provide informational APIs needed for passes.
A set of analyses that are preserved following a run of a transformation pass.
FunctionPass class - This class is used to implement most global optimizations.
llvm::FunctionPass * createDebugifyFunctionPass()
float getEmptyLocationRatio() const
Get the ratio of missing/expected instructions with locations.
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
float getMissingValueRatio() const
Get the ratio of missing/expected dbg.values.
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.