[LLD][COFF] Emit tail merge pdata for delay load thunks on ARM64EC (#116810)
[llvm-project.git] / libclc / amdgcn / lib / workitem / get_local_id.cl
blob073ecfa40ab44028606128967c89d11d1745853c
1 #include <clc/clc.h>
3 _CLC_DEF _CLC_OVERLOAD size_t get_local_id(uint dim) {
4 switch (dim) {
5 case 0:
6 return __builtin_amdgcn_workitem_id_x();
7 case 1:
8 return __builtin_amdgcn_workitem_id_y();
9 case 2:
10 return __builtin_amdgcn_workitem_id_z();
11 default:
12 return 1;