[PATCH] D65814: [PowerPC] Add combined ELF ABI and 32/64 bit queries to the Subtarget [NFC]

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 09:19:50 PDT 2019


sfertile created this revision.
sfertile added reviewers: hfinkel, nemanjai, lei, Xiangling_L, hubert.reinterpretcast.
sfertile added a project: LLVM.
Herald added subscribers: shchenz, wuzish, jsji, MaskRay, kbarton, hiraditya.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65814

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65814.213628.patch
Type: text/x-patch
Size: 13209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190806/f98d55e2/attachment.bin>


More information about the llvm-commits mailing list