[llvm] [Pass] Support start/stop in instrumentation (PR #70912)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 21:55:26 PST 2024
================
@@ -152,6 +153,11 @@ class PassInstrumentationCallbacks {
void addClassToPassName(StringRef ClassName, StringRef PassName);
/// Get the pass name for a given pass class name.
StringRef getPassNameForClassName(StringRef ClassName);
+ /// Inverse of getPassNameForClassName
+ StringRef getClassNameForPassName(StringRef PassName);
+
+ /// Helper callback to support options like start-before.
+ llvm::unique_function<StartStopFunc> StartStopCallback;
----------------
paperchalice wrote:
Oh, I forgot to remove this, this implementation doesn't need this any more, sorry.
https://github.com/llvm/llvm-project/pull/70912
More information about the llvm-commits
mailing list