| 1 |
; UNSUPPORTED:expensive_checks |
| 2 |
; RUN:llc -O0 -mtriple=spirv-- -disable-verify -debug-pass=Structure < %s 2>&1 \ |
| 3 |
; RUN: | FileCheck -match-full-lines -strict-whitespace -check-prefix=SPIRV-O0 %s |
| 4 |
; RUN:llc -O1 -mtriple=spirv-- -disable-verify -debug-pass=Structure < %s 2>&1 \ |
| 5 |
; RUN: | FileCheck -match-full-lines -strict-whitespace -check-prefix=SPIRV-Opt %s |
| 6 |
; RUN:llc -O2 -mtriple=spirv-- -disable-verify -debug-pass=Structure < %s 2>&1 \ |
| 7 |
; RUN: | FileCheck -match-full-lines -strict-whitespace -check-prefix=SPIRV-Opt %s |
| 8 |
; RUN:llc -O3 -mtriple=spirv-- -disable-verify -debug-pass=Structure < %s 2>&1 \ |
| 9 |
; RUN: | FileCheck -match-full-lines -strict-whitespace -check-prefix=SPIRV-Opt %s |
| 10 |
; |
| 11 |
; REQUIRES:asserts |
| 12 |
|
| 13 |
; SPIRV-O0:Target Library Information |
| 14 |
; SPIRV-O0-NEXT:Runtime Library Function Analysis |
| 15 |
; SPIRV-O0-NEXT:Target Pass Configuration |
| 16 |
; SPIRV-O0-NEXT:Machine Module Information |
| 17 |
; SPIRV-O0-NEXT:Target Transform Information |
| 18 |
; SPIRV-O0-NEXT:Library Function Lowering Analysis |
| 19 |
; SPIRV-O0-NEXT:Create Garbage Collector Module Metadata |
| 20 |
; SPIRV-O0-NEXT:Assumption Cache Tracker |
| 21 |
; SPIRV-O0-NEXT:Profile summary info |
| 22 |
; SPIRV-O0-NEXT:Machine Branch Probability Analysis |
| 23 |
; SPIRV-O0-NEXT: ModulePass Manager |
| 24 |
; SPIRV-O0-NEXT: Pre-ISel Intrinsic Lowering |
| 25 |
; SPIRV-O0-NEXT: FunctionPass Manager |
| 26 |
; SPIRV-O0-NEXT: Expand IR instructions |
| 27 |
; SPIRV-O0-NEXT: Lower Garbage Collection Instructions |
| 28 |
; SPIRV-O0-NEXT: Shadow Stack GC Lowering |
| 29 |
; SPIRV-O0-NEXT: Remove unreachable blocks from the CFG |
| 30 |
; SPIRV-O0-NEXT: Instrument function entry/exit with calls to e.g. mcount() (post inlining) |
| 31 |
; SPIRV-O0-NEXT: Scalarize Masked Memory Intrinsics |
| 32 |
; SPIRV-O0-NEXT: Expand reduction intrinsics |
| 33 |
; SPIRV-O0-NEXT: SPIR-V Regularizer |
| 34 |
; SPIRV-O0-NEXT: SPIRV prepare functions |
| 35 |
; SPIRV-O0-NEXT: SPIRV prepare global variables |
| 36 |
; SPIRV-O0-NEXT: FunctionPass Manager |
| 37 |
; SPIRV-O0-NEXT: Lower invoke and unwind, for unwindless code generators |
| 38 |
; SPIRV-O0-NEXT: Remove unreachable blocks from the CFG |
| 39 |
; SPIRV-O0-NEXT: SPIRV strip convergent intrinsics |
| 40 |
; SPIRV-O0-NEXT: SPIRV Legalize Implicit Binding |
| 41 |
; SPIRV-O0-NEXT: SPIRV Legalize Zero-Size Arrays |
| 42 |
; SPIRV-O0-NEXT: SPIRV CBuffer Access |
| 43 |
; SPIRV-O0-NEXT: SPIRV push constant Access |
| 44 |
; SPIRV-O0-NEXT: SPIRV emit intrinsics |
| 45 |
; SPIRV-O0-NEXT: FunctionPass Manager |
| 46 |
; SPIRV-O0-NEXT: SPIRV legalize bitcast pass |
| 47 |
; SPIRV-O0-NEXT: Prepare callbr |
| 48 |
; SPIRV-O0-NEXT: Safe Stack instrumentation pass |
| 49 |
; SPIRV-O0-NEXT: Insert stack protectors |
| 50 |
; SPIRV-O0-NEXT: Analysis containing CSE Info |
| 51 |
; SPIRV-O0-NEXT: IRTranslator |
| 52 |
; SPIRV-O0-NEXT: Analysis for ComputingKnownBits |
| 53 |
; SPIRV-O0-NEXT: MachineDominator Tree Construction |
| 54 |
; SPIRV-O0-NEXT: SPIRVPreLegalizerCombiner |
| 55 |
; SPIRV-O0-NEXT: SPIRV pre legalizer |
| 56 |
; SPIRV-O0-NEXT: Analysis containing CSE Info |
| 57 |
; SPIRV-O0-NEXT: Legalizer |
| 58 |
; SPIRV-O0-NEXT: SPIRV post legalizer |
| 59 |
; SPIRV-O0-NEXT: Analysis for ComputingKnownBits |
| 60 |
; SPIRV-O0-NEXT: Dominator Tree Construction |
| 61 |
; SPIRV-O0-NEXT: Natural Loop Information |
| 62 |
; SPIRV-O0-NEXT: Lazy Branch Probability Analysis |
| 63 |
; SPIRV-O0-NEXT: Lazy Block Frequency Analysis |
| 64 |
; SPIRV-O0-NEXT: InstructionSelect |
| 65 |
; SPIRV-O0-NEXT: ResetMachineFunction |
| 66 |
; SPIRV-O0-NEXT: Finalize ISel and expand pseudo-instructions |
| 67 |
; SPIRV-O0-NEXT: Local Stack Slot Allocation |
| 68 |
; SPIRV-O0-NEXT: Remove Redundant DEBUG_VALUE analysis |
| 69 |
; SPIRV-O0-NEXT: Fixup Statepoint Caller Saved |
| 70 |
; SPIRV-O0-NEXT: Lazy Machine Block Frequency Analysis |
| 71 |
; SPIRV-O0-NEXT: Machine Optimization Remark Emitter |
| 72 |
; SPIRV-O0-NEXT: Prologue/Epilogue Insertion & Frame Finalization |
| 73 |
; SPIRV-O0-NEXT: Post-RA pseudo instruction expansion pass |
| 74 |
; SPIRV-O0-NEXT: Analyze Machine Code For Garbage Collection |
| 75 |
; SPIRV-O0-NEXT: Insert fentry calls |
| 76 |
; SPIRV-O0-NEXT: Insert XRay ops |
| 77 |
; SPIRV-O0-NEXT: Machine Sanitizer Binary Metadata |
| 78 |
; SPIRV-O0-NEXT: Lazy Machine Block Frequency Analysis |
| 79 |
; SPIRV-O0-NEXT: Machine Optimization Remark Emitter |
| 80 |
; SPIRV-O0-NEXT: Stack Frame Layout Analysis |
| 81 |
; SPIRV-O0-NEXT: SPIRV module analysis |
| 82 |
; SPIRV-O0-NEXT: FunctionPass Manager |
| 83 |
; SPIRV-O0-NEXT: Lazy Machine Block Frequency Analysis |
| 84 |
; SPIRV-O0-NEXT: Machine Optimization Remark Emitter |
| 85 |
; SPIRV-O0-NEXT: SPIRV Assembly Printer |
| 86 |
; SPIRV-O0-NEXT: Free MachineFunction |
| 87 |
|
| 88 |
; SPIRV-Opt:Target Library Information |
| 89 |
; SPIRV-Opt-NEXT:Runtime Library Function Analysis |
| 90 |
; SPIRV-Opt-NEXT:Target Pass Configuration |
| 91 |
; SPIRV-Opt-NEXT:Machine Module Information |
| 92 |
; SPIRV-Opt-NEXT:Target Transform Information |
| 93 |
; SPIRV-Opt-NEXT:Library Function Lowering Analysis |
| 94 |
; SPIRV-Opt-NEXT:Assumption Cache Tracker |
| 95 |
; SPIRV-Opt-NEXT:Type-Based Alias Analysis |
| 96 |
; SPIRV-Opt-NEXT:Scoped NoAlias Alias Analysis |
| 97 |
; SPIRV-Opt-NEXT:Profile summary info |
| 98 |
; SPIRV-Opt-NEXT:Create Garbage Collector Module Metadata |
| 99 |
; SPIRV-Opt-NEXT:Machine Branch Probability Analysis |
| 100 |
; SPIRV-Opt-NEXT: ModulePass Manager |
| 101 |
; SPIRV-Opt-NEXT: Pre-ISel Intrinsic Lowering |
| 102 |
; SPIRV-Opt-NEXT: FunctionPass Manager |
| 103 |
; SPIRV-Opt-NEXT: Expand IR instructions |
| 104 |
; SPIRV-Opt-NEXT: Dominator Tree Construction |
| 105 |
; SPIRV-Opt-NEXT: Basic Alias Analysis (stateless AA impl) |
| 106 |
; SPIRV-Opt-NEXT: Natural Loop Information |
| 107 |
; SPIRV-Opt-NEXT: Canonicalize natural loops |
| 108 |
; SPIRV-Opt-NEXT: Scalar Evolution Analysis |
| 109 |
; SPIRV-Opt-NEXT: Loop Pass Manager |
| 110 |
; SPIRV-Opt-NEXT: Canonicalize Freeze Instructions in Loops |
| 111 |
; SPIRV-Opt-NEXT: Induction Variable Users |
| 112 |
; SPIRV-Opt-NEXT: Loop Strength Reduction |
| 113 |
; SPIRV-Opt-NEXT: Basic Alias Analysis (stateless AA impl) |
| 114 |
; SPIRV-Opt-NEXT: Function Alias Analysis Results |
| 115 |
; SPIRV-Opt-NEXT: Merge contiguous icmps into a memcmp |
| 116 |
; SPIRV-Opt-NEXT: Natural Loop Information |
| 117 |
; SPIRV-Opt-NEXT: Lazy Branch Probability Analysis |
| 118 |
; SPIRV-Opt-NEXT: Lazy Block Frequency Analysis |
| 119 |
; SPIRV-Opt-NEXT: Expand memcmp() to load/stores |
| 120 |
; SPIRV-Opt-NEXT: Lower Garbage Collection Instructions |
| 121 |
; SPIRV-Opt-NEXT: Shadow Stack GC Lowering |
| 122 |
; SPIRV-Opt-NEXT: Remove unreachable blocks from the CFG |
| 123 |
; SPIRV-Opt-NEXT: Natural Loop Information |
| 124 |
; SPIRV-Opt-NEXT: Post-Dominator Tree Construction |
| 125 |
; SPIRV-Opt-NEXT: Branch Probability Analysis |
| 126 |
; SPIRV-Opt-NEXT: Block Frequency Analysis |
| 127 |
; SPIRV-Opt-NEXT: Constant Hoisting |
| 128 |
; SPIRV-Opt-NEXT: Replace intrinsics with calls to vector library |
| 129 |
; SPIRV-Opt-NEXT: Lazy Branch Probability Analysis |
| 130 |
; SPIRV-Opt-NEXT: Lazy Block Frequency Analysis |
| 131 |
; SPIRV-Opt-NEXT: Optimization Remark Emitter |
| 132 |
; SPIRV-Opt-NEXT: Partially inline calls to library functions |
| 133 |
; SPIRV-Opt-NEXT: Instrument function entry/exit with calls to e.g. mcount() (post inlining) |
| 134 |
; SPIRV-Opt-NEXT: Scalarize Masked Memory Intrinsics |
| 135 |
; SPIRV-Opt-NEXT: Expand reduction intrinsics |
| 136 |
; SPIRV-Opt-NEXT: SPIR-V Regularizer |
| 137 |
; SPIRV-Opt-NEXT: SPIRV prepare functions |
| 138 |
; SPIRV-Opt-NEXT: SPIRV prepare global variables |
| 139 |
; SPIRV-Opt-NEXT: FunctionPass Manager |
| 140 |
; SPIRV-Opt-NEXT: Dominator Tree Construction |
| 141 |
; SPIRV-Opt-NEXT: Natural Loop Information |
| 142 |
; SPIRV-Opt-NEXT: CodeGen Prepare |
| 143 |
; SPIRV-Opt-NEXT: Lower invoke and unwind, for unwindless code generators |
| 144 |
; SPIRV-Opt-NEXT: Remove unreachable blocks from the CFG |
| 145 |
; SPIRV-Opt-NEXT: SPIRV strip convergent intrinsics |
| 146 |
; SPIRV-Opt-NEXT: SPIRV Legalize Implicit Binding |
| 147 |
; SPIRV-Opt-NEXT: SPIRV Legalize Zero-Size Arrays |
| 148 |
; SPIRV-Opt-NEXT: SPIRV CBuffer Access |
| 149 |
; SPIRV-Opt-NEXT: SPIRV push constant Access |
| 150 |
; SPIRV-Opt-NEXT: SPIRV emit intrinsics |
| 151 |
; SPIRV-Opt-NEXT: FunctionPass Manager |
| 152 |
; SPIRV-Opt-NEXT: SPIRV legalize bitcast pass |
| 153 |
; SPIRV-Opt-NEXT: Dominator Tree Construction |
| 154 |
; SPIRV-Opt-NEXT: Basic Alias Analysis (stateless AA impl) |
| 155 |
; SPIRV-Opt-NEXT: Function Alias Analysis Results |
| 156 |
; SPIRV-Opt-NEXT: ObjC ARC contraction |
| 157 |
; SPIRV-Opt-NEXT: Prepare callbr |
| 158 |
; SPIRV-Opt-NEXT: Safe Stack instrumentation pass |
| 159 |
; SPIRV-Opt-NEXT: Insert stack protectors |
| 160 |
; SPIRV-Opt-NEXT: Analysis containing CSE Info |
| 161 |
; SPIRV-Opt-NEXT: Natural Loop Information |
| 162 |
; SPIRV-Opt-NEXT: Post-Dominator Tree Construction |
| 163 |
; SPIRV-Opt-NEXT: Branch Probability Analysis |
| 164 |
; SPIRV-Opt-NEXT: Basic Alias Analysis (stateless AA impl) |
| 165 |
; SPIRV-Opt-NEXT: Function Alias Analysis Results |
| 166 |
; SPIRV-Opt-NEXT: IRTranslator |
| 167 |
; SPIRV-Opt-NEXT: Analysis for ComputingKnownBits |
| 168 |
; SPIRV-Opt-NEXT: MachineDominator Tree Construction |
| 169 |
; SPIRV-Opt-NEXT: SPIRVPreLegalizerCombiner |
| 170 |
; SPIRV-Opt-NEXT: SPIRV pre legalizer |
| 171 |
; SPIRV-Opt-NEXT: Analysis containing CSE Info |
| 172 |
; SPIRV-Opt-NEXT: Legalizer |
| 173 |
; SPIRV-Opt-NEXT: SPIRV post legalizer |
| 174 |
; SPIRV-Opt-NEXT: Analysis for ComputingKnownBits |
| 175 |
; SPIRV-Opt-NEXT: Lazy Branch Probability Analysis |
| 176 |
; SPIRV-Opt-NEXT: Lazy Block Frequency Analysis |
| 177 |
; SPIRV-Opt-NEXT: InstructionSelect |
| 178 |
; SPIRV-Opt-NEXT: ResetMachineFunction |
| 179 |
; SPIRV-Opt-NEXT: Finalize ISel and expand pseudo-instructions |
| 180 |
; SPIRV-Opt-NEXT: Lazy Machine Block Frequency Analysis |
| 181 |
; SPIRV-Opt-NEXT: Early Tail Duplication |
| 182 |
; SPIRV-Opt-NEXT: Optimize machine instruction PHIs |
| 183 |
; SPIRV-Opt-NEXT: Slot index numbering |
| 184 |
; SPIRV-Opt-NEXT: Merge disjoint stack slots |
| 185 |
; SPIRV-Opt-NEXT: Local Stack Slot Allocation |
| 186 |
; SPIRV-Opt-NEXT: Remove dead machine instructions |
| 187 |
; SPIRV-Opt-NEXT: MachineDominator Tree Construction |
| 188 |
; SPIRV-Opt-NEXT: Machine Natural Loop Construction |
| 189 |
; SPIRV-Opt-NEXT: Machine Block Frequency Analysis |
| 190 |
; SPIRV-Opt-NEXT: Early Machine Loop Invariant Code Motion |
| 191 |
; SPIRV-Opt-NEXT: MachineDominator Tree Construction |
| 192 |
; SPIRV-Opt-NEXT: Machine Block Frequency Analysis |
| 193 |
; SPIRV-Opt-NEXT: Machine Common Subexpression Elimination |
| 194 |
; SPIRV-Opt-NEXT: MachinePostDominator Tree Construction |
| 195 |
; SPIRV-Opt-NEXT: Machine Cycle Info Analysis |
| 196 |
; SPIRV-Opt-NEXT: Machine code sinking |
| 197 |
; SPIRV-Opt-NEXT: Peephole Optimizations |
| 198 |
; SPIRV-Opt-NEXT: Remove dead machine instructions |
| 199 |
; SPIRV-Opt-NEXT: Remove Redundant DEBUG_VALUE analysis |
| 200 |
; SPIRV-Opt-NEXT: Fixup Statepoint Caller Saved |
| 201 |
; SPIRV-Opt-NEXT: Lazy Machine Block Frequency Analysis |
| 202 |
; SPIRV-Opt-NEXT: Machine Optimization Remark Emitter |
| 203 |
; SPIRV-Opt-NEXT: Prologue/Epilogue Insertion & Frame Finalization |
| 204 |
; SPIRV-Opt-NEXT: Tail Duplication |
| 205 |
; SPIRV-Opt-NEXT: Post-RA pseudo instruction expansion pass |
| 206 |
; SPIRV-Opt-NEXT: Analyze Machine Code For Garbage Collection |
| 207 |
; SPIRV-Opt-NEXT: Insert fentry calls |
| 208 |
; SPIRV-Opt-NEXT: Insert XRay ops |
| 209 |
; SPIRV-Opt-NEXT: Machine Sanitizer Binary Metadata |
| 210 |
; SPIRV-Opt-NEXT: Lazy Machine Block Frequency Analysis |
| 211 |
; SPIRV-Opt-NEXT: Machine Optimization Remark Emitter |
| 212 |
; SPIRV-Opt-NEXT: Stack Frame Layout Analysis |
| 213 |
; SPIRV-Opt-NEXT: SPIRV module analysis |
| 214 |
; SPIRV-Opt-NEXT: FunctionPass Manager |
| 215 |
; SPIRV-Opt-NEXT: Lazy Machine Block Frequency Analysis |
| 216 |
; SPIRV-Opt-NEXT: Machine Optimization Remark Emitter |
| 217 |
; SPIRV-Opt-NEXT: SPIRV Assembly Printer |
| 218 |
; SPIRV-Opt-NEXT: Free MachineFunction |
| 219 |
|
| 220 |
define void @empty() { |
| 221 |
ret void |
| 222 |
} |