[JITLink][ELF][AArch64] Lift MachO/arm64 edges into aarch64.h, reuse for ELF.
authorSunho Kim <ksunhokim123@gmail.com>
Tue, 7 Jun 2022 18:39:05 +0000 (11:39 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 7 Jun 2022 19:01:43 +0000 (12:01 -0700)
commitb6553f592aa4227f73d31f656bf84c9b722ea4cd
treeb4044fa4b043280ca6fe2822607d26598ca879c3
parentba26e45ca9238fe7449f435496ba44750374b30e
[JITLink][ELF][AArch64] Lift MachO/arm64 edges into aarch64.h, reuse for ELF.

This patch moves the aarch64 fixup logic from the MachO/arm64 backend to
aarch64.h header so that it can be re-used in the ELF/aarch64 backend. This
significantly expands relocation support in the ELF/aarch64 backend.

Reviewed By: lhames, sgraenitz

Differential Revision: https://reviews.llvm.org/D126286
llvm/include/llvm/ExecutionEngine/JITLink/MachO_arm64.h
llvm/include/llvm/ExecutionEngine/JITLink/aarch64.h
llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
llvm/lib/ExecutionEngine/JITLink/aarch64.cpp