Debian Codegraph @

llvm/test/tools/llvm-reduce/mir/preserve-func-info.mir

raw
1 # REQUIRES: amdgpu-registered-target
2 # RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
3 # RUN: FileCheck --check-prefix=RESULT %s < %t
4
5 # CHECK-INTERESTINGNESS: V_MOV_B32
6
7
8 # RESULT: name: func
9 # RESULT-NEXT: alignment: 32
10 # RESULT-NEXT: exposesReturnsTwice: true
11 # RESULT-NEXT: legalized: true
12 # RESULT-NEXT: regBankSelected: true
13 # RESULT-NEXT: selected: true
14 # RESULT-NEXT: failedISel: true
15 # RESULT-NEXT: tracksRegLiveness: true
16 # RESULT-NEXT: hasWinCFI: true
17 # RESULT-NEXT: noPhis: false
18 # RESULT-NEXT: isSSA: false
19 # RESULT-NEXT: noVRegs: false
20 # RESULT-NEXT: hasFakeUses: true
21 # RESULT-NEXT: callsEHReturn: true
22 # RESULT-NEXT: callsUnwindInit: true
23 # RESULT-NEXT: hasEHContTarget: true
24 # RESULT-NEXT: hasEHScopes: true
25 # RESULT-NEXT: hasEHFunclets: true
26 # RESULT-NEXT: failsVerification: true
27 # RESULT-NEXT: tracksDebugUserValues: true
28
29 # RESULT: %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
30 # RESULT-NEXT: S_ENDPGM
31
32 --- |
33 define void @func(i32 %size) {
34 ret void
35 }
36
37 ...
38 ---
39 name: func
40 alignment: 32
41 exposesReturnsTwice: true
42 legalized: true
43 regBankSelected: true
44 selected: true
45 failedISel: true
46 tracksRegLiveness: true
47 hasWinCFI: true
48 noPhis: false
49 isSSA: false
50 noVRegs: false
51 hasFakeUses: true
52 failsVerification: true
53 tracksDebugUserValues: true
54 callsEHReturn: true
55 callsUnwindInit: true
56 hasEHContTarget: true
57 hasEHScopes: true
58 hasEHFunclets: true
59
60 body: |
61 bb.0:
62 S_NOP 0
63 %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
64 INLINEASM &"", 1 /* sideeffect attdialect */
65 S_ENDPGM 0, implicit %0
66 ...