File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change 1
- ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes
2
1
; RUN: opt -LowerESIMD -S < %s | FileCheck %s
3
2
4
3
; This test checks that LowerESIMD pass sets the 'alwaysinline'
5
4
; attribute for all the functions called from ESIMD kernels.
6
5
7
6
define spir_kernel void @EsimdKernel1 () {
8
- ; CHECK-LABEL : @EsimdKernel1(
7
+ ; CHECK: @EsimdKernel1(
9
8
; CHECK-NEXT: call void @foo()
10
9
; CHECK-NEXT: call void @bar()
11
- ; CHECK-NEXT: ret void
12
- ;
13
10
call void @foo ()
14
11
call void @bar ()
15
12
ret void
16
13
}
17
14
18
15
define spir_kernel void @EsimdKernel2 () {
19
- ; CHECK-LABEL : @EsimdKernel2(
16
+ ; CHECK: @EsimdKernel2(
20
17
; CHECK-NEXT: call void @foobar()
21
- ; CHECK-NEXT: ret void
22
- ;
23
18
call void @foobar ()
24
19
ret void
25
20
}
26
21
27
22
define spir_func void @foo () {
28
- ; CHECK: Function Attrs: alwaysinline
29
- ; CHECK-LABEL: @foo(
30
- ; CHECK-NEXT: ret void
31
- ;
23
+ ; CHECK: @foo() #[[ATTR:[0-9]+]]
32
24
ret void
33
25
}
34
26
35
27
define spir_func void @bar () {
36
- ; CHECK: Function Attrs: alwaysinline
37
- ; CHECK-LABEL: @bar(
38
- ; CHECK-NEXT: call void @foobar()
39
- ; CHECK-NEXT: ret void
40
- ;
28
+ ; CHECK: @bar() #[[ATTR]]
29
+ ; CHECK-NEXT: call void @foobar
41
30
call void @foobar ()
42
31
ret void
43
32
}
44
33
45
34
define spir_func void @foobar () {
46
- ; CHECK: Function Attrs: alwaysinline
47
- ; CHECK-LABEL: @foobar(
48
- ; CHECK-NEXT: ret void
49
- ;
35
+ ; CHECK: @foobar() #[[ATTR]]
50
36
ret void
51
37
}
38
+
39
+ ; CHECK: attributes #[[ATTR]] = { alwaysinline }
You can’t perform that action at this time.
0 commit comments