[PATCH] D98305: [JITLink] Introduce generic x86-64 support by refactoring MachO/x86-64.

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 16:40:02 PST 2021


lhames created this revision.
lhames added reviewers: sgraenitz, jaredwy.
Herald added subscribers: pengfei, hiraditya, mgorny.
lhames requested review of this revision.
Herald added a project: LLVM.

This patch refactors the MachO/x86-64 implementation of JITLink to replace the
MachO-specific edge kinds with generic x86-64 edges and fixup expressions. The
new, generic x86-64 edge kinds should be re-usable for other formats (ELF, and
COFF if/when support for that is added) and simplify the writing of format
agnostic (but architecture specific) JITLink passes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98305

Files:
  llvm/include/llvm/ExecutionEngine/JITLink/ELF_x86_64.h
  llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
  llvm/include/llvm/ExecutionEngine/JITLink/MachO_arm64.h
  llvm/include/llvm/ExecutionEngine/JITLink/MachO_x86_64.h
  llvm/include/llvm/ExecutionEngine/JITLink/x86_64.h
  llvm/lib/ExecutionEngine/JITLink/BasicGOTAndStubsBuilder.h
  llvm/lib/ExecutionEngine/JITLink/CMakeLists.txt
  llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
  llvm/lib/ExecutionEngine/JITLink/JITLink.cpp
  llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp
  llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h
  llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
  llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
  llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
  llvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
  llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
  llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98305.329495.patch
Type: text/x-patch
Size: 57579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210310/8f4222dd/attachment-0001.bin>


More information about the llvm-commits mailing list