[PowerPC] Add combined ELF ABI and 32/64 bit queries to the subtarget. [NFC]
authorSean Fertile <sfertile@ca.ibm.com>
Thu, 22 Aug 2019 15:11:28 +0000 (15:11 +0000)
committerSean Fertile <sfertile@ca.ibm.com>
Thu, 22 Aug 2019 15:11:28 +0000 (15:11 +0000)
commit5f85a7b1cfe900e9ade741fec770397c5a7bded6
tree335fc0e3f8cff9ddef6ecf28132b3c0f1892c0f3
parent18fd1b0b494a196f84bfa93dec6f421c9a4da22e
[PowerPC] Add combined ELF ABI and 32/64 bit queries to the subtarget. [NFC]

A lot of places in the code combine checks for both ABI (SVR4/Darwin/AIX) and
addressing mode (64-bit vs 32-bit). In an attempt to make some of the code more
readable I've added a couple functions that combine checking for the ELF abi and
64-bit/32-bit code at once. As we add more AIX support I intend to add similar
functions for the AIX ABI.

Differential Revision: https://reviews.llvm.org/D65814

llvm-svn: 369658
llvm/lib/Target/PowerPC/PPCFastISel.cpp
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/lib/Target/PowerPC/PPCRegisterInfo.td
llvm/lib/Target/PowerPC/PPCSubtarget.h