forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathper-reqd-wg-size-split-2.ll
More file actions
59 lines (47 loc) · 1.63 KB
/
per-reqd-wg-size-split-2.ll
File metadata and controls
59 lines (47 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
; The test is intended to check that sycl-post-link correctly groups kernels
; by unique reqd_work_group_size values used in them
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
; RUN: FileCheck %s -input-file=%t.table --check-prefix CHECK-TABLE
;
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefix CHECK-M0-SYMS \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1 \
; RUN: --implicit-check-not kernel2
;
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefix CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel3
;
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefix CHECK-M1-SYMS \
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2 \
; RUN: --implicit-check-not kernel3
; CHECK-TABLE: Code
; CHECK-TABLE-NEXT: _0.sym
; CHECK-TABLE-NEXT: _1.sym
; CHECK-TABLE-NEXT: _2.sym
; CHECK-TABLE-EMPTY:
; CHECK-M0-SYMS: kernel3
; CHECK-M1-SYMS: kernel0
; CHECK-M2-SYMS: kernel1
; CHECK-M2-SYMS: kernel2
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
target triple = "spir64-unknown-linux"
define dso_local spir_kernel void @kernel0() #0 !reqd_work_group_size !1 {
entry:
ret void
}
define dso_local spir_kernel void @kernel1() #0 !reqd_work_group_size !2 {
entry:
ret void
}
define dso_local spir_kernel void @kernel2() #0 !reqd_work_group_size !3 {
entry:
ret void
}
define dso_local spir_kernel void @kernel3() #0 !reqd_work_group_size !4 {
entry:
ret void
}
attributes #0 = { "sycl-module-id"="TU1.cpp" }
!1 = !{i32 32}
!2 = !{i32 64, i32 64}
!3 = !{i32 64, i32 64}
!4 = !{i32 16, i32 16, i32 16}