summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-12-15 12:19:34 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2015-12-15 12:19:34 +0000
commitb033f67df0773ccc2565638df3ff3cf9f821629e (patch)
tree38945dab66c956f301a412b8f56df333b1519241 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parent0ecdae1bdca95fb69985fac0dbf9332b0df759ae (diff)
downloadbcm5719-llvm-b033f67df0773ccc2565638df3ff3cf9f821629e.tar.gz
bcm5719-llvm-b033f67df0773ccc2565638df3ff3cf9f821629e.zip
Define a feature for __float128 support in the PPC back end
This patch corresponds to review: http://reviews.llvm.org/D15117 In preparation for supporting IEEE Quad precision floating point, this patch simply defines a feature to specify the target supports this. For now, nothing is done with the target feature, we just don't want warnings from the Clang FE when a user specifies -mfloat128. Calling convention and other related work will add to this patch in the near future. llvm-svn: 255642
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index a55c0d3a722..4f5c95c1483 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -121,6 +121,7 @@ protected:
bool HasDirectMove;
bool HasHTM;
bool HasFusion;
+ bool HasFloat128;
/// When targeting QPX running a stock PPC64 Linux kernel where the stack
/// alignment has not been changed, we need to keep the 16-byte alignment
@@ -259,6 +260,7 @@ public:
}
bool hasHTM() const { return HasHTM; }
bool hasFusion() const { return HasFusion; }
+ bool hasFloat128() const { return HasFloat128; }
const Triple &getTargetTriple() const { return TargetTriple; }
OpenPOWER on IntegriCloud