[Openmp-commits] [PATCH] D153704: [openmp] remove initializeRewriteSymbolsLegacyPassPass
Shao-Ce SUN via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Jun 24 09:33:07 PDT 2023
sunshaoce updated this revision to Diff 534229.
sunshaoce marked an inline comment as done.
sunshaoce added a comment.
Removed `JITTargetInitialized`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153704/new/
https://reviews.llvm.org/D153704
Files:
openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
Index: openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
===================================================================
--- openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
+++ openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
@@ -58,14 +58,12 @@
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 @@
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>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153704.534229.patch
Type: text/x-patch
Size: 2563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230624/38c1dd33/attachment.bin>
More information about the Openmp-commits
mailing list