annotate llvm/test/CodeGen/AMDGPU/stress-calls.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -amdgpu-stress-function-calls -amdgpu-always-inline %s | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 ; CHECK: define internal fastcc i32 @alwaysinline_func(i32 %a) #0 {
anatofuz
parents:
diff changeset
4 define internal fastcc i32 @alwaysinline_func(i32 %a) alwaysinline {
anatofuz
parents:
diff changeset
5 entry:
anatofuz
parents:
diff changeset
6 %tmp0 = add i32 %a, 1
anatofuz
parents:
diff changeset
7 ret i32 %tmp0
anatofuz
parents:
diff changeset
8 }
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 ; CHECK: define internal fastcc i32 @noinline_func(i32 %a) #1 {
anatofuz
parents:
diff changeset
11 define internal fastcc i32 @noinline_func(i32 %a) noinline {
anatofuz
parents:
diff changeset
12 entry:
anatofuz
parents:
diff changeset
13 %tmp0 = add i32 %a, 2
anatofuz
parents:
diff changeset
14 ret i32 %tmp0
anatofuz
parents:
diff changeset
15 }
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 ; CHECK: define internal fastcc i32 @unmarked_func(i32 %a) #1 {
anatofuz
parents:
diff changeset
18 define internal fastcc i32 @unmarked_func(i32 %a) {
anatofuz
parents:
diff changeset
19 entry:
anatofuz
parents:
diff changeset
20 %tmp0 = add i32 %a, 3
anatofuz
parents:
diff changeset
21 ret i32 %tmp0
anatofuz
parents:
diff changeset
22 }
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 define amdgpu_kernel void @kernel(i32 addrspace(1)* %out) {
anatofuz
parents:
diff changeset
25 entry:
anatofuz
parents:
diff changeset
26 %tmp0 = call i32 @alwaysinline_func(i32 1)
anatofuz
parents:
diff changeset
27 store volatile i32 %tmp0, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
28 %tmp1 = call i32 @noinline_func(i32 1)
anatofuz
parents:
diff changeset
29 store volatile i32 %tmp1, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
30 %tmp2 = call i32 @unmarked_func(i32 1)
anatofuz
parents:
diff changeset
31 store volatile i32 %tmp2, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
32 ret void
anatofuz
parents:
diff changeset
33 }
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 ; CHECK: attributes #0 = { alwaysinline }
anatofuz
parents:
diff changeset
36 ; CHECK: attributes #1 = { noinline }