aboutsummaryrefslogtreecommitdiff
path: root/libclc/spirv/lib/math
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2020-09-15 13:01:04 -0400
committerJan Vesely <jano.vesely@gmail.com>2020-09-16 01:37:22 -0400
commit291bfff5dbb70360730e91b4019f8080e4e3d7f5 (patch)
tree0cc8e3b25b44717e2e67423085e7d6dbf0fd2a42 /libclc/spirv/lib/math
parent9c40495a35a2cac89dd72db54892d6bd7a2abf0d (diff)
downloadllvm-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/spirv/lib/math')
-rw-r--r--libclc/spirv/lib/math/fma.cl5
1 files changed, 5 insertions, 0 deletions
diff --git a/libclc/spirv/lib/math/fma.cl b/libclc/spirv/lib/math/fma.cl
index 982ddc4..7914242 100644
--- a/libclc/spirv/lib/math/fma.cl
+++ b/libclc/spirv/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;
+}