[PATCH] D47136: [Sparc] Add support for 13-bit PIC

Daniel Cederman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 21 05:31:31 PDT 2018


dcederman created this revision.
dcederman added reviewers: jyknight, venkatra.
Herald added subscribers: llvm-commits, jrtc27, fedor.sergeev.

When compiling with -fpic, in contrast to -fPIC, use only the immediate field to index into the GOT. This saves space if the GOT is known to be small. The linker will warn if the GOT is too large for this method.


Repository:
  rL LLVM

https://reviews.llvm.org/D47136

Files:
  lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
  lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
  lib/Target/Sparc/MCTargetDesc/SparcFixupKinds.h
  lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
  lib/Target/Sparc/MCTargetDesc/SparcMCExpr.h
  lib/Target/Sparc/SparcISelLowering.cpp
  test/CodeGen/SPARC/pic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47136.147770.patch
Type: text/x-patch
Size: 6380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180521/969f5dd8/attachment.bin>


More information about the llvm-commits mailing list