[Openmp-commits] [openmp] f042890 - [openmp] remove initializeRewriteSymbolsLegacyPassPass
Shao-Ce SUN via Openmp-commits
openmp-commits at lists.llvm.org
Sat Jun 24 09:35:07 PDT 2023
Author: Shao-Ce SUN
Date: 2023-06-25T00:35:01+08:00
New Revision: f042890521f314cfd0bb0a3b8399d2c7d1bd526b
URL: https://github.com/llvm/llvm-project/commit/f042890521f314cfd0bb0a3b8399d2c7d1bd526b
DIFF: https://github.com/llvm/llvm-project/commit/f042890521f314cfd0bb0a3b8399d2c7d1bd526b.diff
LOG: [openmp] remove initializeRewriteSymbolsLegacyPassPass
Fix build error caused by D153679
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D153704
Added:
Modified:
openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
index bdccefc616712..3a2e01c4edc74 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
@@ -58,14 +58,12 @@ std::shared_mutex BitcodeImageMapMutex;
std::once_flag InitFlag;
void init(Triple TT) {
- bool JITTargetInitialized = false;
#ifdef LIBOMPTARGET_JIT_NVPTX
if (TT.isNVPTX()) {
LLVMInitializeNVPTXTargetInfo();
LLVMInitializeNVPTXTarget();
LLVMInitializeNVPTXTargetMC();
LLVMInitializeNVPTXAsmPrinter();
- JITTargetInitialized = true;
}
#endif
#ifdef LIBOMPTARGET_JIT_AMDGPU
@@ -74,49 +72,8 @@ void init(Triple TT) {
LLVMInitializeAMDGPUTarget();
LLVMInitializeAMDGPUTargetMC();
LLVMInitializeAMDGPUAsmPrinter();
- JITTargetInitialized = true;
}
#endif
- if (!JITTargetInitialized)
- return;
-
- // Initialize passes
- PassRegistry &Registry = *PassRegistry::getPassRegistry();
- initializeCore(Registry);
- initializeScalarOpts(Registry);
- initializeVectorization(Registry);
- initializeIPO(Registry);
- initializeAnalysis(Registry);
- initializeTransformUtils(Registry);
- initializeInstCombine(Registry);
- initializeTarget(Registry);
-
- initializeExpandLargeDivRemLegacyPassPass(Registry);
- initializeExpandLargeFpConvertLegacyPassPass(Registry);
- initializeExpandMemCmpPassPass(Registry);
- initializeScalarizeMaskedMemIntrinLegacyPassPass(Registry);
- initializeSelectOptimizePass(Registry);
- initializeCodeGenPreparePass(Registry);
- initializeAtomicExpandPass(Registry);
- initializeRewriteSymbolsLegacyPassPass(Registry);
- initializeWinEHPreparePass(Registry);
- initializeDwarfEHPrepareLegacyPassPass(Registry);
- initializeSafeStackLegacyPassPass(Registry);
- initializeSjLjEHPreparePass(Registry);
- initializePreISelIntrinsicLoweringLegacyPassPass(Registry);
- initializeGlobalMergePass(Registry);
- initializeIndirectBrExpandPassPass(Registry);
- initializeInterleavedLoadCombinePass(Registry);
- initializeInterleavedAccessPass(Registry);
- initializeUnreachableBlockElimLegacyPassPass(Registry);
- initializeExpandReductionsPass(Registry);
- initializeExpandVectorPredicationPass(Registry);
- initializeWasmEHPreparePass(Registry);
- initializeWriteBitcodePassPass(Registry);
- initializeHardwareLoopsLegacyPass(Registry);
- initializeTypePromotionLegacyPass(Registry);
- initializeReplaceWithVeclibLegacyPass(Registry);
- initializeJMCInstrumenterPass(Registry);
}
Expected<std::unique_ptr<Module>>
More information about the Openmp-commits
mailing list