[LLD][COFF] Emit tail merge pdata for delay load thunks on ARM64EC (#116810)
[llvm-project.git] / libclc / amdgcn / lib / workitem / get_local_size.cl
blobc398b7eb5a9d1fd0bbf20d1278db046a13bb5c1b
1 #include <clc/clc.h>
3 uint __clc_amdgcn_get_local_size_x(void) __asm("llvm.r600.read.local.size.x");
4 uint __clc_amdgcn_get_local_size_y(void) __asm("llvm.r600.read.local.size.y");
5 uint __clc_amdgcn_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_amdgcn_get_local_size_x();
11 case 1:
12 return __clc_amdgcn_get_local_size_y();
13 case 2:
14 return __clc_amdgcn_get_local_size_z();
15 default:
16 return 1;