[llvm] 7d9039e - [JITLink][PowerPC][RFC] Make JITLink default in LLJIT for ppc64 elfv2abi
Kai Luo via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 17 19:18:28 PDT 2023
Author: Kai Luo
Date: 2023-09-18T02:18:23Z
New Revision: 7d9039e11d3f251339ab5d102fcb535754942bda
URL: https://github.com/llvm/llvm-project/commit/7d9039e11d3f251339ab5d102fcb535754942bda
DIFF: https://github.com/llvm/llvm-project/commit/7d9039e11d3f251339ab5d102fcb535754942bda.diff
LOG: [JITLink][PowerPC][RFC] Make JITLink default in LLJIT for ppc64 elfv2abi
JITLink for ppc64 has implemented all relocations implemented in rtdyld for ppc64 and has passed all existed lit tests and unittests in llvm/clang/compiler-rt. I propose making JITLink for ppc64 default in LLJIT.
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D159175
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index b92c30dd6b722f9..18ab9e6b940fefe 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -752,6 +752,12 @@ Error LLJITBuilderState::prepareForConstruction() {
case Triple::x86_64:
UseJITLink = !TT.isOSBinFormatCOFF();
break;
+ case Triple::ppc64:
+ UseJITLink = TT.isPPC64ELFv2ABI();
+ break;
+ case Triple::ppc64le:
+ UseJITLink = TT.isOSBinFormatELF();
+ break;
default:
break;
}
More information about the llvm-commits
mailing list