[PATCH] D70352: [PowerPC] Rename DarwinDirective to CPUDirective (NFC)

Kit Barton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 18:19:36 PST 2019


kbarton created this revision.
kbarton added reviewers: nemanjai, hfinkel, power-llvm-team, jsji, echristo.
Herald added subscribers: llvm-commits, shchenz, hiraditya.
Herald added a project: LLVM.

This patch renames the DarwinDirective (used to identify which CPU was defined)
to CPUDirective. It also adds the getCPUDirective() method and replaces all uses
of getDarwinDirective() with getCPUDirective().

Once this patch lands and downstream users of the getDarwinDirective() method
have switched to the getCPUDirective() method, the old getDarwinDirective()
method will be removed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70352

Files:
  llvm/lib/Target/PowerPC/PPC.td
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
  llvm/lib/Target/PowerPC/PPCSubtarget.cpp
  llvm/lib/Target/PowerPC/PPCSubtarget.h
  llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70352.229673.patch
Type: text/x-patch
Size: 14087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191116/d19b3a23/attachment-0001.bin>


More information about the llvm-commits mailing list