[PowerPC][Future] Initial support for PCRel addressing for constant pool loads
authorStefan Pintilie <stefanp@ca.ibm.com>
Thu, 9 Apr 2020 16:17:23 +0000 (11:17 -0500)
committerKamau Bridgeman <kamau.bridgeman@ibm.com>
Thu, 9 Apr 2020 16:17:23 +0000 (11:17 -0500)
commit75828ef615dad4ec9845b1f35f9aea7c77c928f6
tree7308ee8395989162d73fd5265751c732316a6941
parent015dee1ac8988ed5184ef649c72ea0692f2633b3
[PowerPC][Future] Initial support for PCRel addressing for constant pool loads

Add initial support for PC Relative addressing for constant pool loads.
This includes adding a new relocation for @pcrel and adding a new PowerPC flag
to identify PC relative addressing.

Differential Revision: https://reviews.llvm.org/D74486
18 files changed:
llvm/include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.h
llvm/lib/Target/PowerPC/PPC.h
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
llvm/test/CodeGen/PowerPC/constant-pool.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/pcrel-call-linkage-leaf.ll
llvm/test/CodeGen/PowerPC/pcrel.ll [new file with mode: 0644]