[PATCH] D34611: [mips][FastISel] Correct the relocation operators for calls & data.

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 26 03:16:25 PDT 2017


sdardis created this revision.
Herald added a subscriber: arichardson.

Correct the relocation operators from %got to %call16 for function call
lowering in FastISel and correct the relocation sequences for objects which
are not visible outside their translation unit.

Data and functions which are not visible outside their translation unit are
accessed by loading the base address from the GOT and modifying that with
a %lo relocation operator.


https://reviews.llvm.org/D34611

Files:
  lib/Target/Mips/MipsFastISel.cpp
  test/CodeGen/Mips/Fast-ISel/callabi.ll
  test/CodeGen/Mips/Fast-ISel/memtest1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34611.103914.patch
Type: text/x-patch
Size: 11221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170626/6e19cc06/attachment.bin>


More information about the llvm-commits mailing list