Enable support for F16C with Clang. The required intrinsics were added here: https://reviews.llvm.org/D16177

and are part of LLVM 3.8.0.
This commit is contained in:
Rasmus Munk Larsen 2019-05-20 17:19:20 -07:00
parent e92486b8c3
commit 3eb5ad0ed0

View File

@ -372,7 +372,7 @@
#endif
#endif
#if defined(__F16C__) && !defined(EIGEN_COMP_CLANG)
#if defined(__F16C__) && (!defined(EIGEN_COMP_CLANG) || EIGEN_COMP_CLANG>=380)
// We can use the optimized fp16 to float and float to fp16 conversion routines
#define EIGEN_HAS_FP16_C
#endif