[llvm] cff6d12 - [Bye] Remove legacy pipeline registration
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 18 13:47:31 PST 2022
Author: Arthur Eubanks
Date: 2022-11-18T13:47:19-08:00
New Revision: cff6d125fb330e8d53429ac9d2f67d24e3ab866b
URL: https://github.com/llvm/llvm-project/commit/cff6d125fb330e8d53429ac9d2f67d24e3ab866b
DIFF: https://github.com/llvm/llvm-project/commit/cff6d125fb330e8d53429ac9d2f67d24e3ab866b.diff
LOG: [Bye] Remove legacy pipeline registration
D137915 has somehow caused a flang bot to fail: https://lab.llvm.org/buildbot/#/builders/191/builds/11279.
Given that the issue is with the legacy pipeline registration code and the legacy pipeline registration infrastructure is to be removed soon, remove this part of Bye.
Added:
Modified:
llvm/examples/Bye/Bye.cpp
Removed:
################################################################################
diff --git a/llvm/examples/Bye/Bye.cpp b/llvm/examples/Bye/Bye.cpp
index ba50f9445d8a9..d88bf9e490e9c 100644
--- a/llvm/examples/Bye/Bye.cpp
+++ b/llvm/examples/Bye/Bye.cpp
@@ -5,7 +5,6 @@
#include "llvm/Passes/PassPlugin.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
-#include "llvm/Transforms/IPO/PassManagerBuilder.h"
using namespace llvm;
@@ -44,17 +43,6 @@ static RegisterPass<LegacyBye> X("goodbye", "Good Bye World Pass",
false /* Only looks at CFG */,
false /* Analysis Pass */);
-/* Legacy PM Registration */
-static llvm::RegisterStandardPasses RegisterBye(
- llvm::PassManagerBuilder::EP_VectorizerStart,
- [](const llvm::PassManagerBuilder &Builder,
- llvm::legacy::PassManagerBase &PM) { PM.add(new LegacyBye()); });
-
-static llvm::RegisterStandardPasses RegisterByeLTO(
- llvm::PassManagerBuilder::EP_ModuleOptimizerEarly,
- [](const llvm::PassManagerBuilder &Builder,
- llvm::legacy::PassManagerBase &PM) { PM.add(new LegacyBye()); });
-
/* New PM Registration */
llvm::PassPluginLibraryInfo getByePluginInfo() {
return {LLVM_PLUGIN_API_VERSION, "Bye", LLVM_VERSION_STRING,
More information about the llvm-commits
mailing list