| 1 |
119734787 66048 458752 10 0 |
| 2 |
2 Capability Addresses |
| 3 |
2 Capability Kernel |
| 4 |
2 Capability LiteralSampler |
| 5 |
3 MemoryModel 1 2 |
| 6 |
8 EntryPoint 6 1 "testSamplerVariable" |
| 7 |
3 Source 3 102000 |
| 8 |
|
| 9 |
4 TypeInt 3 32 0 |
| 10 |
2 TypeVoid 2 |
| 11 |
2 TypeSampler 4 |
| 12 |
4 TypePointer 5 0 4 |
| 13 |
3 TypeFunction 8 2 |
| 14 |
6 ConstantSampler 4 6 2 0 0 |
| 15 |
5 Variable 5 7 0 6 |
| 16 |
|
| 17 |
5 Function 2 1 0 8 |
| 18 |
|
| 19 |
2 Label 9 |
| 20 |
1 Return |
| 21 |
|
| 22 |
1 FunctionEnd |
| 23 |
|
| 24 |
; RUN: llvm-spirv %s -to-binary -o %t.spv |
| 25 |
; RUN: spirv-val %t.spv |
| 26 |
; Reverse translation shouldn't crash: |
| 27 |
; RUN: llvm-spirv -r -emit-opaque-pointers --spirv-target-env=SPV-IR %t.spv -o %t.bc |