[PATCH] D146641: [JITLink] Introduce target flags for Symbol and prepare ObjectLinkingLayer to account for them

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 22 09:28:12 PDT 2023


sgraenitz created this revision.
sgraenitz added a reviewer: lhames.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
sgraenitz requested review of this revision.
Herald added a project: LLVM.

AArch32 branch offsets explicitly encode the target instruction subset (Arm/Thumb) in their least significant bit. We want this bit set (or clear) in addreses we hand out, but the addresses in the LinkGraph should be the real/physical addresses.

This patch allows ELFLinkGraphBuilder's to set target-specific flags in jitlink::Symbol and prepares ObjectLinkingLayer to account for them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146641

Files:
  llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
  llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h
  llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146641.507395.patch
Type: text/x-patch
Size: 5328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230322/842d5fda/attachment.bin>


More information about the llvm-commits mailing list