aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-10-16 20:38:58 +0000
committerEric Christopher <echristo@gmail.com>2013-10-16 20:38:58 +0000
commit985ce242a74adf6519609782acbdce2d5464fc22 (patch)
treedec4dff299924fce0696eb59f4e1bc34dcb999c7
parent75ee00021d5e753be09baa4121a090afc8d7c236 (diff)
downloadexternal_llvm-985ce242a74adf6519609782acbdce2d5464fc22.zip
external_llvm-985ce242a74adf6519609782acbdce2d5464fc22.tar.gz
external_llvm-985ce242a74adf6519609782acbdce2d5464fc22.tar.bz2
Add support for the VSX target attribute. No functional change
as we don't actually use it to emit any code yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192837 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPC.td2
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPC.td b/lib/Target/PowerPC/PPC.td
index 57ee264..54e3d40 100644
--- a/lib/Target/PowerPC/PPC.td
+++ b/lib/Target/PowerPC/PPC.td
@@ -87,6 +87,8 @@ def FeatureBookE : SubtargetFeature<"booke", "IsBookE", "true",
"Enable Book E instructions">;
def FeatureQPX : SubtargetFeature<"qpx","HasQPX", "true",
"Enable QPX instructions">;
+def FeatureVSX : SubtargetFeature<"vsx","HasVSX", "true",
+ "Enable VSX instructions">;
def DeprecatedMFTB : SubtargetFeature<"", "DeprecatedMFTB", "true",
"Treat mftb as deprecated">;
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index a9fa98f..c863a6e 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -76,6 +76,7 @@ protected:
bool IsPPC64;
bool HasAltivec;
bool HasQPX;
+ bool HasVSX;
bool HasFCPSGN;
bool HasFSQRT;
bool HasFRE, HasFRES, HasFRSQRTE, HasFRSQRTES;