[PATCH] D148192: [JITLink][ELF][PPC64] Add skeleton ppc64 support and ELF/ppc64 JITLink backend.

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 22:06:43 PDT 2023


lhames created this revision.
lhames added reviewers: sgraenitz, v.g.vassilev, pchintalapudi, vchuravy, amyk, Esme, maryammo, stefanp.
Herald added subscribers: s.egerton, shchenz, simoncook, asb, fedor.sergeev, kbarton, hiraditya, nemanjai.
Herald added a project: All.
lhames requested review of this revision.
Herald added a subscriber: pcwang-thead.
Herald added a project: LLVM.

This patch introduces a skeleton JITLink ppc64 support header and ELF/ppc64
backend. No relocations are supported in this initial version, but given a
program requiring no relocations (e.g. one that just returns a constant value
from main) the new backend is able to construct a LinkGraph from a ppc64 ELF
relocatable object, and the llvm-jitlink tool is able to execute it.

Being minimal, this commit should also serve as a good example of how to
introduce a JITLink backend for a new architecture.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148192

Files:
  llvm/include/llvm/ExecutionEngine/JITLink/ELF_ppc64.h
  llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
  llvm/lib/ExecutionEngine/JITLink/CMakeLists.txt
  llvm/lib/ExecutionEngine/JITLink/ELF.cpp
  llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp
  llvm/lib/ExecutionEngine/JITLink/ppc64.cpp
  llvm/test/ExecutionEngine/JITLink/PPC64/ppc64le-no-relocs.s
  llvm/test/ExecutionEngine/lit.local.cfg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148192.513061.patch
Type: text/x-patch
Size: 13818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230413/c8ef4890/attachment.bin>


More information about the llvm-commits mailing list