summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-03-14 18:42:38 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-03-14 18:42:38 +0000
commit631379e79c0971c5bac13629b8caf8912ed4c35c (patch)
tree58f93f7512cc0f5b0291100ef3c4349cc72f1da5 /lib/Target/ARM/ARMSubtarget.h
parentbec3dd25c76c825c179ef35794a8fa3620cf2559 (diff)
downloadllvm-631379e79c0971c5bac13629b8caf8912ed4c35c.tar.gz
llvm-631379e79c0971c5bac13629b8caf8912ed4c35c.tar.bz2
llvm-631379e79c0971c5bac13629b8caf8912ed4c35c.tar.xz
Add substarget feature for FP16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r--lib/Target/ARM/ARMSubtarget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h
index 4d36036b18..2dc81a4d6d 100644
--- a/lib/Target/ARM/ARMSubtarget.h
+++ b/lib/Target/ARM/ARMSubtarget.h
@@ -66,6 +66,10 @@ protected:
/// imms (including global addresses).
bool UseMovt;
+ /// HasFP16 - True if subtarget supports half-precision FP (We support VFP+HF
+ /// only so far)
+ bool HasFP16;
+
/// stackAlignment - The minimum alignment known to hold of the stack frame on
/// entry to the function and which must be maintained by every function.
unsigned stackAlignment;
@@ -116,6 +120,8 @@ protected:
bool useNEONForSinglePrecisionFP() const {
return hasNEON() && UseNEONForSinglePrecisionFP; }
+ bool hasFP16() const { return HasFP16; }
+
bool isTargetDarwin() const { return TargetType == isDarwin; }
bool isTargetELF() const { return TargetType == isELF; }