[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libclc / r600 / lib / workitem / get_local_size.cl
blob6edab7c46c2fe8dbe6d44975f5315e09304df0e8
1 #include <clc/clc.h>
3 uint __clc_r600_get_local_size_x(void) __asm("llvm.r600.read.local.size.x");
4 uint __clc_r600_get_local_size_y(void) __asm("llvm.r600.read.local.size.y");
5 uint __clc_r600_get_local_size_z(void) __asm("llvm.r600.read.local.size.z");
7 _CLC_DEF _CLC_OVERLOAD size_t get_local_size(uint dim) {
8 switch (dim) {
9 case 0:
10 return __clc_r600_get_local_size_x();
11 case 1:
12 return __clc_r600_get_local_size_y();
13 case 2:
14 return __clc_r600_get_local_size_z();
15 default:
16 return 1;