[all-commits] [llvm/llvm-project] cf8dc9: [JITLink] Introduce target flags for Symbol and pr...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Wed Mar 22 12:45:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf8dc9dfe9eb66621cb7c860bf81b29699415c66
      https://github.com/llvm/llvm-project/commit/cf8dc9dfe9eb66621cb7c860bf81b29699415c66
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
    M llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h
    M llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp

  Log Message:
  -----------
  [JITLink] Introduce target flags for Symbol and prepare ObjectLinkingLayer to account for them

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.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D146641




More information about the All-commits mailing list