[PATCH] D94627: [PowerPC][PC Rel] Implement option to omit P10 instructions from stubs

Albion Fung via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 13 11:49:33 PST 2021


Conanap created this revision.
Conanap added reviewers: stefanp, nemanjai, PowerPC.
Conanap added projects: LLVM, clang, PowerPC.
Herald added subscribers: dang, kbarton, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: MaskRay.
Conanap requested review of this revision.

Implemented the option to omit Power10 instructions from save stubs via the option `--no-power10-stubs` or `--power10-stubs=no` on lld. `--power10-stubs=` will override the other option. `--power10-stubs=auto` also exists to use the default behaviour (ie allow Power10 instructions in stubs).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94627

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/Options.td
  lld/ELF/Thunks.cpp
  lld/test/ELF/ppc64-call-reach.s
  lld/test/ELF/ppc64-long-branch-localentry-offset.s
  lld/test/ELF/ppc64-long-branch-pi.s
  lld/test/ELF/ppc64-long-branch-rel14.s
  lld/test/ELF/ppc64-long-branch.s
  lld/test/ELF/ppc64-pcrel-call-to-extern.s
  lld/test/ELF/ppc64-pcrel-call-to-toc.s
  lld/test/ELF/ppc64-plt-stub-compatible.s
  lld/test/ELF/ppc64-tls-pcrel-gd.s
  lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s
  lld/test/ELF/ppc64-toc-call-to-pcrel.s
  llvm/include/llvm/Object/ELF.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94627.316467.patch
Type: text/x-patch
Size: 35162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210113/dc88e851/attachment-0001.bin>


More information about the cfe-commits mailing list