summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/clc_unary.inc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-03-08 18:58:00 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-03-08 18:58:00 +0000
commit17e8679493734b07aa764a9ec7cf040da35388e0 (patch)
tree38dc4b62075b587b70ecc74b7e751b83dba5e23f /libclc/generic/lib/clc_unary.inc
parent7b66ef10364d20acfa83934e04a04b2f799a0396 (diff)
downloadbcm5719-llvm-17e8679493734b07aa764a9ec7cf040da35388e0.tar.gz
bcm5719-llvm-17e8679493734b07aa764a9ec7cf040da35388e0.zip
popcount: Provide function implementation rather than intrinsic redirect
amdgcn will need to override this Reviewer: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 327042
Diffstat (limited to 'libclc/generic/lib/clc_unary.inc')
-rw-r--r--libclc/generic/lib/clc_unary.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libclc/generic/lib/clc_unary.inc b/libclc/generic/lib/clc_unary.inc
new file mode 100644
index 00000000000..6c2782d102a
--- /dev/null
+++ b/libclc/generic/lib/clc_unary.inc
@@ -0,0 +1,3 @@
+_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __CLC_FUNC(__CLC_GENTYPE x) {
+ return __CLC_IMPL_FUNC(x);
+}
OpenPOWER on IntegriCloud