[PATCH] D75280: [PowerPC][Future] Add initial support for PC Relative addressing for global values

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 27 11:35:28 PST 2020


stefanp created this revision.
stefanp added reviewers: PowerPC, nemanjai, lei, hfinkel.
Herald added subscribers: shchenz, jsji, jfb, kbarton, hiraditya.
Herald added a project: LLVM.

This patch adds PC Relative support for global values that are known at link time.
If a global value requires access through the global offset table (GOT) it is not covered in this patch.


https://reviews.llvm.org/D75280

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/lib/Target/PowerPC/PPCInstrPrefix.td
  llvm/test/CodeGen/PowerPC/csr-split.ll
  llvm/test/CodeGen/PowerPC/global-address-non-got-indirect-access.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75280.247033.patch
Type: text/x-patch
Size: 30717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200227/6451bf5f/attachment.bin>


More information about the llvm-commits mailing list