summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/AArch64.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2019-01-25 17:27:57 +0000
committerErich Keane <erich.keane@intel.com>2019-01-25 17:27:57 +0000
commit1d1d438e8e721d8cef58b638fc304c2ff87094f0 (patch)
tree04258ca8e40009042378edaf780fa54c6676d22b /clang/lib/Basic/Targets/AArch64.cpp
parenta04584b095c9fda0730b1f24466e4d5e3e4d2f14 (diff)
downloadbcm5719-llvm-1d1d438e8e721d8cef58b638fc304c2ff87094f0.tar.gz
bcm5719-llvm-1d1d438e8e721d8cef58b638fc304c2ff87094f0.zip
Disable _Float16 for non ARM/SPIR Targets
As Discussed here: http://lists.llvm.org/pipermail/llvm-dev/2019-January/129543.html There are problems exposing the _Float16 type on architectures that haven't defined the ABI/ISel for the type yet, so we're temporarily disabling the type and making it opt-in. Differential Revision: https://reviews.llvm.org/D57188 Change-Id: I5db7366dedf1deb9485adb8948b1deb7e612a736 llvm-svn: 352221
Diffstat (limited to 'clang/lib/Basic/Targets/AArch64.cpp')
-rw-r--r--clang/lib/Basic/Targets/AArch64.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets/AArch64.cpp b/clang/lib/Basic/Targets/AArch64.cpp
index de591fcea41..a0885a69819 100644
--- a/clang/lib/Basic/Targets/AArch64.cpp
+++ b/clang/lib/Basic/Targets/AArch64.cpp
@@ -49,6 +49,7 @@ AArch64TargetInfo::AArch64TargetInfo(const llvm::Triple &Triple,
// All AArch64 implementations support ARMv8 FP, which makes half a legal type.
HasLegalHalfType = true;
+ HasFloat16 = true;
LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
MaxVectorAlign = 128;
OpenPOWER on IntegriCloud