[PATCH] D110383: [JITLink][NFC] Add TableManager to replace PerGraph...Builder pass

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 23 23:15:40 PDT 2021


StephenFan created this revision.
StephenFan added a reviewer: lhames.
Herald added subscribers: pengfei, s.egerton, PkmX, simoncook, hiraditya, kristof.beyls.
StephenFan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch add a TableManager which reponsible for fixing edges that need entries to reference the target symbol and constructing such entries.

In the past, the PerGraphGOTAndPLTStubsBuilder pass was used to build GOT and PLT entry, and the PerGraphTLSInfoEntryBuilder pass was used to build TLSInfo entry. By generalizing the behavior of building entry, I added a TableManager which could be reused when built GOT, PLT and TLSInfo entries.

If this patch makes sense and can be accepted, I will apply the TableManager to other targets(MachO_x86_64, MachO_arm64, ELF_riscv)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110383

Files:
  llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
  llvm/lib/ExecutionEngine/JITLink/PerGraphTLSInfoEntryBuilder.h
  llvm/lib/ExecutionEngine/JITLink/TableManager.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110383.374732.patch
Type: text/x-patch
Size: 19549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210924/afc9e607/attachment.bin>


More information about the llvm-commits mailing list