From abeda742aae099b52679b96ee0fc13b8d0b459da Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Thu, 21 Mar 2024 22:55:16 +0800 Subject: [PATCH] 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 --- lib/Interpreter/IncrementalJIT.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Interpreter/IncrementalJIT.cpp b/lib/Interpreter/IncrementalJIT.cpp index 0fb4b59b..1bc3323a 100644 --- a/lib/Interpreter/IncrementalJIT.cpp +++ b/lib/Interpreter/IncrementalJIT.cpp @@ -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.