[PATCH] D159055: [JITLink][PowerPC][WIP] Handle local branch target is out of range
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 28 21:10:21 PDT 2023
lkail created this revision.
Herald added subscribers: shchenz, kbarton, hiraditya, nemanjai.
Herald added a project: All.
lkail requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
`R_PPC64_REL24` relocation is able to branch directly if the displacement of the branching target is within int26 range. If not, we have to create a stub to perform indirect branching.
This patch assumes all local branching need a stub and optimize it via a PreFixupPass.
Since rtdyld for ppc64 has handled such case, now we implement it for jitlink for ppc64.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159055
Files:
llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp
llvm/lib/ExecutionEngine/JITLink/ppc64.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159055.554157.patch
Type: text/x-patch
Size: 5405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230829/ab50ea13/attachment.bin>
More information about the llvm-commits
mailing list