diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2018-03-08 18:58:00 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2018-03-08 18:58:00 +0000 |
commit | 17e8679493734b07aa764a9ec7cf040da35388e0 (patch) | |
tree | 38dc4b62075b587b70ecc74b7e751b83dba5e23f /libclc/generic/lib/integer | |
parent | 7b66ef10364d20acfa83934e04a04b2f799a0396 (diff) | |
download | bcm5719-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/integer')
-rw-r--r-- | libclc/generic/lib/integer/popcount.cl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libclc/generic/lib/integer/popcount.cl b/libclc/generic/lib/integer/popcount.cl new file mode 100644 index 00000000000..ca83b1afaf9 --- /dev/null +++ b/libclc/generic/lib/integer/popcount.cl @@ -0,0 +1,8 @@ +#include <clc/clc.h> +#include <integer/popcount.h> + +#define __CLC_FUNC popcount +#define __CLC_IMPL_FUNC __clc_native_popcount + +#define __CLC_BODY "../clc_unary.inc" +#include <clc/integer/gentype.inc> |