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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CodeGenOpenCL
/
byval.cl
blob
6e734d7c5d83e4c21061dbf61e35439ee3a73f17
1
//
RUN
:
%clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s
2
3
struct A
{
4
int x
[100];
5
};
6
7
int f(struct A a);
8
9
int g() {
10
struct A a;
11
// CHECK: call i32 @f(ptr addrspace(5) noundef byval{{.*}}%a)
12
return f(a);
13
}
14
15
// CHECK: declare i32 @f(ptr addrspace(5) noundef byval{{.*}})