[llvm] r219514 - [PowerPC] Reduce names from Power8Vector to P8Vector
Bill Schmidt
wschmidt at linux.vnet.ibm.com
Fri Oct 10 10:21:16 PDT 2014
Author: wschmidt
Date: Fri Oct 10 12:21:15 2014
New Revision: 219514
URL: http://llvm.org/viewvc/llvm-project?rev=219514&view=rev
Log:
[PowerPC] Reduce names from Power8Vector to P8Vector
Per Hal Finkel's review, improving typability of some variable names.
Modified:
llvm/trunk/lib/Target/PowerPC/PPC.td
llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
Modified: llvm/trunk/lib/Target/PowerPC/PPC.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPC.td?rev=219514&r1=219513&r2=219514&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPC.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPC.td Fri Oct 10 12:21:15 2014
@@ -104,10 +104,9 @@ def FeatureQPX : SubtargetFeature<
def FeatureVSX : SubtargetFeature<"vsx","HasVSX", "true",
"Enable VSX instructions",
[FeatureAltivec]>;
-def FeaturePower8Vector : SubtargetFeature<"power8-vector", "HasPower8Vector",
- "true",
- "Enable Power8 vector instructions",
- [FeatureVSX, FeatureAltivec]>;
+def FeatureP8Vector : SubtargetFeature<"power8-vector", "HasP8Vector", "true",
+ "Enable POWER8 vector instructions",
+ [FeatureVSX, FeatureAltivec]>;
def DeprecatedMFTB : SubtargetFeature<"", "DeprecatedMFTB", "true",
"Treat mftb as deprecated">;
Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp?rev=219514&r1=219513&r2=219514&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp Fri Oct 10 12:21:15 2014
@@ -94,7 +94,7 @@ void PPCSubtarget::initializeEnvironment
HasSPE = false;
HasQPX = false;
HasVSX = false;
- HasPower8Vector = false;
+ HasP8Vector = false;
HasFCPSGN = false;
HasFSQRT = false;
HasFRE = false;
@@ -158,7 +158,7 @@ void PPCSubtarget::initSubtargetFeatures
// issues in those instructions can be addressed.
if (IsLittleEndian) {
HasVSX = false;
- HasPower8Vector = false;
+ HasP8Vector = false;
}
// Determine default ABI.
Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h?rev=219514&r1=219513&r2=219514&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h Fri Oct 10 12:21:15 2014
@@ -91,7 +91,7 @@ protected:
bool HasSPE;
bool HasQPX;
bool HasVSX;
- bool HasPower8Vector;
+ bool HasP8Vector;
bool HasFCPSGN;
bool HasFSQRT;
bool HasFRE, HasFRES, HasFRSQRTE, HasFRSQRTES;
@@ -216,7 +216,7 @@ public:
bool hasSPE() const { return HasSPE; }
bool hasQPX() const { return HasQPX; }
bool hasVSX() const { return HasVSX; }
- bool hasPower8Vector() const { return HasPower8Vector; }
+ bool hasP8Vector() const { return HasP8Vector; }
bool hasMFOCRF() const { return HasMFOCRF; }
bool hasISEL() const { return HasISEL; }
bool hasPOPCNTD() const { return HasPOPCNTD; }
More information about the llvm-commits
mailing list