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