Add support for small-model PIC for PowerPC.
authorJustin Hibbits <jrh29@alumni.cwru.edu>
Wed, 12 Nov 2014 15:16:30 +0000 (15:16 +0000)
committerJustin Hibbits <jrh29@alumni.cwru.edu>
Wed, 12 Nov 2014 15:16:30 +0000 (15:16 +0000)
commita88b605721a602e473c6072b6d2bf20aec02b0c7
tree4839d0b50dc4a34a2721388b0216e852f3656b84
parent62cf35b8a3116517017247b321d9c1dfbd94a401
Add support for small-model PIC for PowerPC.

Summary:
Large-model was added first.  With the addition of support for multiple PIC
models in LLVM, now add small-model PIC for 32-bit PowerPC, SysV4 ABI.  This
generates more optimal code, for shared libraries with less than about 16380
data objects.

Test Plan: Test cases added or updated

Reviewers: joerg, hfinkel

Reviewed By: hfinkel

Subscribers: jholewinski, mcrosier, emaste, llvm-commits

Differential Revision: http://reviews.llvm.org/D5399

llvm-svn: 221791
12 files changed:
llvm/include/llvm/MC/MCExpr.h
llvm/include/llvm/Support/ELF.h
llvm/lib/MC/MCExpr.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/ppc32-pic.ll
llvm/test/CodeGen/PowerPC/sections.ll
llvm/test/CodeGen/PowerPC/tls-pic.ll