Backport jitlink ppc64 (#13850)

* Backport JITLink ppc64 backend to LLVM-16

* Backport ELF part

* Backport PCREL relocations

* Use jitlink::Section::blocks::empty instead

* Backport TLS PCREL relocation

* [llvm-project] Synchronize with LLVM monorepo fork

---------

Co-authored-by: Jonas Hahnfeld <jonas.hahnfeld@cern.ch>
This commit is contained in:
Kai Luo 2024-03-21 22:55:16 +08:00 committed by jenkins
parent eac26aa98e
commit abeda742aa

View File

@ -356,7 +356,8 @@ static bool UseJITLink(const Triple& TT) {
// LLJITBuilderState::prepareForConstruction.
if (TT.getArch() == Triple::riscv64 ||
(TT.isOSBinFormatMachO() &&
(TT.getArch() == Triple::aarch64 || TT.getArch() == Triple::x86_64))) {
(TT.getArch() == Triple::aarch64 || TT.getArch() == Triple::x86_64)) ||
(TT.isOSBinFormatELF() && TT.getArch() == Triple::ppc64le)) {
jitLink = true;
}
// Finally, honor the user's choice by setting an environment variable.