diff options
author | Daniel Stone <daniels@collabora.com> | 2020-09-15 13:01:04 -0400 |
---|---|---|
committer | Jan Vesely <jano.vesely@gmail.com> | 2020-09-16 01:37:22 -0400 |
commit | 291bfff5dbb70360730e91b4019f8080e4e3d7f5 (patch) | |
tree | 0cc8e3b25b44717e2e67423085e7d6dbf0fd2a42 /libclc/spirv64 | |
parent | 9c40495a35a2cac89dd72db54892d6bd7a2abf0d (diff) | |
download | llvm-291bfff5dbb70360730e91b4019f8080e4e3d7f5.zip llvm-291bfff5dbb70360730e91b4019f8080e4e3d7f5.tar.gz llvm-291bfff5dbb70360730e91b4019f8080e4e3d7f5.tar.bz2 |
libclc: Add a __builtin to let SPIRV targets select between SW and HW FMA
Reviewer: jenatali jvesely
Differential Revision: https://reviews.llvm.org/D85910
Diffstat (limited to 'libclc/spirv64')
-rw-r--r-- | libclc/spirv64/lib/math/fma.cl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libclc/spirv64/lib/math/fma.cl b/libclc/spirv64/lib/math/fma.cl index 982ddc4..7914242 100644 --- a/libclc/spirv64/lib/math/fma.cl +++ b/libclc/spirv64/lib/math/fma.cl @@ -4,3 +4,8 @@ #define __CLC_BODY <fma.inc> #define __FLOAT_ONLY #include <clc/math/gentype.inc> + +bool __clc_runtime_has_hw_fma32() +{ + return false; +} |