[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libclc / r600 / lib / workitem / get_global_offset.cl
blob7c2e403ea6ecf25a291e5145b64c9d4b05b7b426
1 #include <clc/clc.h>
3 _CLC_DEF _CLC_OVERLOAD uint get_global_offset(uint dim) {
4 __attribute__((address_space(7))) uint *ptr =
5 (__attribute__((address_space(7)))
6 uint *)__builtin_r600_implicitarg_ptr();
7 if (dim < 3)
8 return ptr[dim + 1];
9 return 0;