annotate clang/test/CodeGenOpenCL/spir-calling-conv.cl @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o - | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 int get_dummy_id(int D);
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 kernel void bar(global int *A);
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 kernel void foo(global int *A)
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
8 // CHECK: define{{.*}} spir_kernel void @foo(i32 addrspace(1)* %A)
150
anatofuz
parents:
diff changeset
9 {
anatofuz
parents:
diff changeset
10 int id = get_dummy_id(0);
anatofuz
parents:
diff changeset
11 // CHECK: %{{[a-z0-9_]+}} = tail call spir_func i32 @get_dummy_id(i32 0)
anatofuz
parents:
diff changeset
12 A[id] = id;
anatofuz
parents:
diff changeset
13 bar(A);
anatofuz
parents:
diff changeset
14 // CHECK: tail call spir_kernel void @bar(i32 addrspace(1)* %A)
anatofuz
parents:
diff changeset
15 }
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // CHECK: declare spir_func i32 @get_dummy_id(i32)
anatofuz
parents:
diff changeset
18 // CHECK: declare spir_kernel void @bar(i32 addrspace(1)*)