[PowerPC] Rename DarwinDirective to CPUDirective (NFC)
authorKit Barton <kbarton@ca.ibm.com>
Fri, 15 Nov 2019 21:48:34 +0000 (15:48 -0600)
committerKit Barton <kbarton@ca.ibm.com>
Mon, 25 Nov 2019 20:26:08 +0000 (14:26 -0600)
commit85e4f5bcf6aac02fe77eda4ab1b4a22c40144d05
tree628ad336be13425b1e5408859bbac03ac764dba7
parent4d5c8caf9b4b9b9507cf7e5eb695051209e7b667
[PowerPC] Rename DarwinDirective to CPUDirective (NFC)

Summary:
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.

Reviewers: nemanjai, hfinkel, power-llvm-team, jsji, echristo, #powerpc, jhibbits

Reviewed By: hfinkel, jsji, jhibbits

Subscribers: hiraditya, shchenz, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70352
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