[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libclc / r600 / lib / workitem / get_group_id.cl
blob1fb993ace72e6f65f0e7a7fde24e764b4370ad4a
1 #include <clc/clc.h>
3 _CLC_DEF _CLC_OVERLOAD uint get_group_id(uint dim) {
4 switch (dim) {
5 case 0:
6 return __builtin_r600_read_tgid_x();
7 case 1:
8 return __builtin_r600_read_tgid_y();
9 case 2:
10 return __builtin_r600_read_tgid_z();
11 default:
12 return 1;