From 985ce242a74adf6519609782acbdce2d5464fc22 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 16 Oct 2013 20:38:58 +0000 Subject: [PATCH] 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 --- lib/Target/PowerPC/PPC.td | 2 ++ lib/Target/PowerPC/PPCSubtarget.h | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/Target/PowerPC/PPC.td b/lib/Target/PowerPC/PPC.td index 57ee2641282..54e3d400a9d 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 a9fa98fa3e8..c863a6ecc77 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;