repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[LLD][COFF] Emit tail merge pdata for delay load thunks on ARM64EC (#116810)
[llvm-project.git]
/
libclc
/
amdgcn
/
lib
/
workitem
/
get_local_id.cl
blob
073ecfa40ab44028606128967c89d11d1745853c
1
#
include
<
clc
/
clc.h
>
2
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
;
13
}
14
}