summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
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
commit081efcc3ac293a30a285f3e8745b9c1ea21ced5a (patch)
tree7b343cc6929fc240b8df0b85a4e1cfb4443f6526 /llvm/lib/Target/PowerPC
parent71a0ad66a95953ed0ad9da7e4502f9f43b2149a0 (diff)
downloadbcm5719-llvm-081efcc3ac293a30a285f3e8745b9c1ea21ced5a.tar.gz
bcm5719-llvm-081efcc3ac293a30a285f3e8745b9c1ea21ced5a.zip
Add support for the VSX target attribute. No functional change
as we don't actually use it to emit any code yet. llvm-svn: 192837
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPC.td2
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC.td b/llvm/lib/Target/PowerPC/PPC.td
index 57ee2641282..54e3d400a9d 100644
--- a/llvm/lib/Target/PowerPC/PPC.td
+++ b/llvm/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/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index a9fa98fa3e8..c863a6ecc77 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud