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)
commitfcd08c294a9fd48bb6f93f71067c740392a939da
treee369dbee5dfbbe48cfce4907bfe006f7ee70b2fb
parent8c2a55264a9b5a3ad8deeeb7bb762a0c97d28b8f
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221791 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/MC/MCExpr.h
include/llvm/Support/ELF.h
lib/MC/MCExpr.cpp
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstrInfo.td
test/CodeGen/PowerPC/ppc32-pic-large.ll [new file with mode: 0644]
test/CodeGen/PowerPC/ppc32-pic.ll
test/CodeGen/PowerPC/sections.ll
test/CodeGen/PowerPC/tls-pic.ll