[llvm] [Instrumentation] Support `MachineFunction` in `OptNoneInstrumentation` (PR #115471)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 11:53:07 PST 2024


================
@@ -40,6 +41,7 @@ class PrintMIRPass : public PassInfoMixin<PrintMIRPass> {
   PrintMIRPass(raw_ostream &OS = errs()) : OS(OS) {}
   PreservedAnalyses run(MachineFunction &MF,
                         MachineFunctionAnalysisManager &MFAM);
+  static bool isRequired() { return true; }
----------------
arsenm wrote:

So this is essentially a concept? This needs something to document it in the base class? 

https://github.com/llvm/llvm-project/pull/115471


More information about the llvm-commits mailing list