Lines Matching full:opt
1 ; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -O1 < %s | FileCheck -check-prefixes=OPT,OPT-EXT %s
2 ; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -O1 --amdgpu-internalize-symbols < %s | FileCheck -check-p…
5 ; OPT: declare void @foo4() local_unnamed_addr #0
6 ; OPT: define internal fastcc void @0() unnamed_addr #1
7 ; OPT-EXT: define void @foo3() local_unnamed_addr #1
8 ; OPT-INT: define internal fastcc void @foo3.2() unnamed_addr #1
9 ; OPT-EXT: define void @foo2() local_unnamed_addr #1
10 ; OPT-INT: define internal fastcc void @foo2.3() unnamed_addr #1
11 ; OPT-EXT: define void @foo1() local_unnamed_addr #1
12 ; OPT-EXT: tail call void @foo4()
13 ; OPT-EXT: tail call void @foo3()
14 ; OPT-EXT: tail call void @foo2()
15 ; OPT-EXT: tail call void @foo2()
16 ; OPT-EXT: tail call void @foo1()
17 ; OPT-EXT: tail call fastcc void @0()
18 ; OPT-INT: define internal fastcc void @foo1.1() unnamed_addr #1
19 ; OPT-INT: tail call void @foo4()
20 ; OPT-INT: tail call fastcc void @foo3.2()
21 ; OPT-INT: tail call fastcc void @foo2.3()
22 ; OPT-INT: tail call fastcc void @foo2.3()
23 ; OPT-INT: tail call fastcc void @foo1.1()
24 ; OPT-INT: tail call fastcc void @0()
25 ; OPT: ret void
26 ; OPT: define amdgpu_kernel void @kernel1() local_unnamed_addr #2
27 ; OPT-EXT: tail call fastcc void @foo1.1()
28 ; OPT-INT: tail call fastcc void @foo1()
29 ; OPT: ret void
30 ; OPT: define amdgpu_kernel void @kernel2() local_unnamed_addr #3
31 ; OPT-EXT: tail call void @foo2()
32 ; OPT-INT: tail call fastcc void @foo2.3()
33 ; OPT: ret void
34 ; OPT: define amdgpu_kernel void @kernel3() local_unnamed_addr #3
35 ; OPT-EXT: tail call void @foo1()
36 ; OPT-INT: tail call fastcc void @foo1.1()
37 ; OPT: ret void
38 ; OPT-EXT: define internal fastcc void @foo1.1() unnamed_addr #4
39 ; OPT-EXT: tail call void @foo4()
40 ; OPT-EXT: tail call fastcc void @foo3.2()
41 ; OPT-EXT: tail call fastcc void @foo2.3()
42 ; OPT-EXT: tail call fastcc void @foo2.3()
43 ; OPT-EXT: tail call fastcc void @foo1.1()
44 ; OPT-EXT: tail call fastcc void @1()
45 ; OPT-INT: define internal fastcc void @foo1() unnamed_addr #4
46 ; OPT-INT: tail call void @foo4()
47 ; OPT-INT: tail call fastcc void @foo3()
48 ; OPT-INT: tail call fastcc void @foo2()
49 ; OPT-INT: tail call fastcc void @foo2()
50 ; OPT-INT: tail call fastcc void @foo1()
51 ; OPT-INT: tail call fastcc void @1()
52 ; OPT: ret void
53 ; OPT: define internal fastcc void @1() unnamed_addr #4
54 ; OPT-EXT: define internal fastcc void @foo3.2() unnamed_addr #4
55 ; OPT-INT: define internal fastcc void @foo3() unnamed_addr #4
56 ; OPT-EXT: define internal fastcc void @foo2.3() unnamed_addr #4
57 ; OPT-INT: define internal fastcc void @foo2() unnamed_addr #4
58 ; OPT: attributes #0 = { {{.*}} "amdgpu-waves-per-eu"="1,1" "target-features"="+wavefrontsize64" }
59 ; OPT: attributes #1 = { {{.*}} "target-features"="{{.*}},-wavefrontsize16,-wavefrontsize32,+wavefr…
60 ; OPT: attributes #2 = { {{.*}} "amdgpu-waves-per-eu"="2,4" "target-features"="+wavefrontsize32" }
61 ; OPT: attributes #3 = { {{.*}} "target-features"="+wavefrontsize64" }
62 ; OPT: attributes #4 = { {{.*}} "amdgpu-waves-per-eu"="2,4" "target-features"="{{.*}},-wavefrontsiz…