[PATCH] D157217: [BOLT] Split createRelocation in X86 and share the second part

Jiapeng Zhou via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 6 04:22:26 PDT 2023


Kepontry created this revision.
Kepontry added reviewers: rafauler, Amir, maksfb.
Kepontry added a project: bolt.
Herald added subscribers: treapster, ayermolo, pengfei, kristof.beyls.
Herald added a project: All.
Kepontry requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

This commit splits the createRelocation function for the X86 architecture into two parts, retaining the first half and moving the second half to a new function called extractFixupExpr. The purpose of this change is to make extractFixupExpr a shared function between AArch64 and X86 architectures, increasing code reusability and maintainability.

Child revision: https://reviews.llvm.org/D156018


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157217

Files:
  bolt/include/bolt/Core/MCPlusBuilder.h
  bolt/lib/Target/X86/X86MCPlusBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157217.547545.patch
Type: text/x-patch
Size: 4851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230806/76c178a8/attachment.bin>


More information about the llvm-commits mailing list