aboutsummaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorShao-Ce SUN <sunshaoce@iscas.ac.cn>2023-06-25 00:32:42 +0800
committerShao-Ce SUN <sunshaoce@iscas.ac.cn>2023-06-25 00:35:01 +0800
commitf042890521f314cfd0bb0a3b8399d2c7d1bd526b (patch)
treecb36b4d6641f463dddda3a5b96f28184ecdad581 /openmp
parentc0a5b147fae97198cefd719f50fc655220985f22 (diff)
downloadllvm-f042890521f314cfd0bb0a3b8399d2c7d1bd526b.zip
llvm-f042890521f314cfd0bb0a3b8399d2c7d1bd526b.tar.gz
llvm-f042890521f314cfd0bb0a3b8399d2c7d1bd526b.tar.bz2
[openmp] remove initializeRewriteSymbolsLegacyPassPass
Fix build error caused by D153679 Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D153704
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
index bdccefc..3a2e01c 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>>