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
[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git]
/
libclc
/
r600
/
lib
/
workitem
/
get_global_offset.cl
blob
7c2e403ea6ecf25a291e5145b64c9d4b05b7b426
1
#
include
<
clc
/
clc.h
>
2
3
_CLC_DEF _CLC_OVERLOAD uint get_global_offset
(
uint
dim
) {
4
__attribute__
((
address_space
(
7
)))
uint
*
ptr
=
5
(
__attribute__
((
address_space
(
7
)))
6
uint
*)
__builtin_r600_implicitarg_ptr
()
;
7
if
(
dim
<
3
)
8
return ptr
[
dim
+
1
]
;
9
return
0
;
10
}