summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/workitem
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2016-07-22 17:24:24 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2016-07-22 17:24:24 +0000
commita82e080b57a47e9ef8f89c56bdd6b9593db596d2 (patch)
tree392d06b76bd59817ac4897128a1961dc84c39208 /libclc/generic/include/clc/workitem
parent74f02db922b4609095da4218fd3016c2c51d056b (diff)
downloadbcm5719-llvm-a82e080b57a47e9ef8f89c56bdd6b9593db596d2.tar.gz
bcm5719-llvm-a82e080b57a47e9ef8f89c56bdd6b9593db596d2.zip
AMDGPU: Implement get_global_offset builtin
Also fix get_global_id to consider offset No idea how to add this for ptx, so they are stuck with the old get_global_id implementation. v2: split to a separate patch v3: Switch R600 to use implictarg.ptr Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 276443
Diffstat (limited to 'libclc/generic/include/clc/workitem')
-rw-r--r--libclc/generic/include/clc/workitem/get_global_offset.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/workitem/get_global_offset.h b/libclc/generic/include/clc/workitem/get_global_offset.h
new file mode 100644
index 00000000000..7f4f6032abe
--- /dev/null
+++ b/libclc/generic/include/clc/workitem/get_global_offset.h
@@ -0,0 +1 @@
+_CLC_DECL size_t get_global_offset(uint dim);
OpenPOWER on IntegriCloud