[all-commits] [llvm/llvm-project] ee6593: [JITLink] Update ELF_x86_64 's edge kind to generi...
luxufan via All-commits
all-commits at lists.llvm.org
Thu Aug 12 22:02:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ee65938357d5fffe9e586fa155b37268b5a358ac
https://github.com/llvm/llvm-project/commit/ee65938357d5fffe9e586fa155b37268b5a358ac
Author: luxufan <932494295 at qq.com>
Date: 2021-08-13 (Fri, 13 Aug 2021)
Changed paths:
M llvm/include/llvm/ExecutionEngine/JITLink/ELF_x86_64.h
M llvm/include/llvm/ExecutionEngine/JITLink/x86_64.h
M llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
M llvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
M llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
Log Message:
-----------
[JITLink] Update ELF_x86_64 's edge kind to generic edge kind
This patch uses a switch statement to map the ELF_x86_64's edge kind to generic edge kind, and merge the ELF_x86_64 's applyFixup function to the x86_64 's applyFixup function. Some edge kinds were not have corresponding generic edge kinds, so I added three generic edge kinds asa follows:
1. RequestGOTAndTransformToDelta64, which is similar to RequestGOTAndTransformToDelta32.
2. GOTDelta64. This generic kind is similar to Delta64, except the GOTDelta64 computes the delta relative to GOTSymbol
3. RequestGOTAndTransformToGOTDelta64. This edge kind was used to deal with ELF_x86_64's GOT64 edge kind, it request the fixGOTEdge function to change the target to GOT entry, and set the edge kind to generic edge kind GOTDelta64.
These added generic edge kinds may named haphazardly, or can't express its meaning well.
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D107967
More information about the All-commits
mailing list