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
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
CodeGenOpenCL
/
byval.cl
blob
bd994ddca4e3cd3e959c4ef14ac14858ae09a103
1
//
RUN
:
%clang_cc1 -no-opaque-pointers -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(%struct.A addrspace(5)* noundef byval{{.*}}%a)
12
return f(a);
13
}
14
15
// CHECK: declare i32 @f(%struct.A addrspace(5)* noundef byval{{.*}})