| 1 |
; RUN: llvm-spirv -to-binary %s -o %t.spv |
| 2 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.rev.bc |
| 3 |
; RUN: llvm-dis %t.rev.bc -o %t.rev.ll |
| 4 |
; RUN: FileCheck < %t.rev.ll %s |
| 5 |
|
| 6 |
; CHECK: !DISubrange(count: 1000) |
| 7 |
|
| 8 |
119734787 65792 393230 48 0 |
| 9 |
2 Capability Addresses |
| 10 |
2 Capability Kernel |
| 11 |
2 Capability Int64 |
| 12 |
2 Capability GenericPointer |
| 13 |
5 ExtInstImport 1 "OpenCL.std" |
| 14 |
5 ExtInstImport 2 "SPIRV.debug" |
| 15 |
3 MemoryModel 2 2 |
| 16 |
15 EntryPoint 6 15 "__omp_offloading_811_198142f_random_fill_sp_l25" |
| 17 |
6 String 29 "Fortran/f.f90" |
| 18 |
4 String 33 "REAL*4" |
| 19 |
16 String 38 "random_fill_sp.DIR.OMP.TARGET.8.split.split.split.split" |
| 20 |
3 String 39 "" |
| 21 |
3 String 41 "a" |
| 22 |
3 Source 4 200000 |
| 23 |
5 Name 4 "structtype" |
| 24 |
5 Name 16 "ascast$val" |
| 25 |
5 Name 17 "ascastB$val" |
| 26 |
5 Name 18 "newFuncRoot" |
| 27 |
6 Name 19 "QNCA_a0$float" |
| 28 |
5 Name 22 "structtype2" |
| 29 |
4 Name 26 ".ascast" |
| 30 |
9 ModuleProcessed "Debug info producer: Fortran" |
| 31 |
4 Decorate 16 FuncParamAttr 2 |
| 32 |
4 Decorate 17 FuncParamAttr 4 |
| 33 |
4 TypeInt 6 64 0 |
| 34 |
4 TypeInt 10 32 0 |
| 35 |
5 Constant 6 7 72 0 |
| 36 |
5 Constant 6 11 1000 0 |
| 37 |
5 Constant 6 23 1 0 |
| 38 |
4 Constant 10 34 32 |
| 39 |
2 TypeVoid 3 |
| 40 |
2 TypeBool 5 |
| 41 |
4 TypeArray 8 5 7 |
| 42 |
3 TypeStruct 4 8 |
| 43 |
|
| 44 |
4 TypePointer 9 7 4 |
| 45 |
4 TypeArray 12 10 11 |
| 46 |
4 TypePointer 13 5 12 |
| 47 |
5 TypeFunction 14 3 9 13 |
| 48 |
3 TypeFloat 20 32 |
| 49 |
4 TypePointer 21 8 20 |
| 50 |
5 TypeStruct 22 6 6 6 |
| 51 |
|
| 52 |
4 TypeArray 24 22 23 |
| 53 |
9 TypeStruct 19 21 6 6 6 6 6 24 |
| 54 |
|
| 55 |
4 TypePointer 25 7 19 |
| 56 |
|
| 57 |
5 ExtInst 3 27 2 DebugInfoNone |
| 58 |
7 ExtInst 3 30 2 DebugSource 29 27 |
| 59 |
9 ExtInst 3 31 2 DebugCompilationUnit 65536 4 30 21 |
| 60 |
7 ExtInst 3 32 2 DebugTypeFunction 0 27 |
| 61 |
8 ExtInst 3 35 2 DebugTypeBasic 33 34 3 |
| 62 |
7 ExtInst 3 36 2 DebugTypeArray 35 11 ; Count = 1000 |
| 63 |
8 ExtInst 3 37 2 DebugTypePointer 36 4294967295 0 |
| 64 |
16 ExtInst 3 40 2 DebugFunction 38 32 30 25 0 31 39 44 25 27 27 |
| 65 |
12 ExtInst 3 42 2 DebugLocalVariable 41 37 30 15 0 40 0 |
| 66 |
6 ExtInst 3 43 2 DebugTypeTemplate 40 |
| 67 |
6 ExtInst 3 44 2 DebugOperation 0 |
| 68 |
6 ExtInst 3 45 2 DebugExpression 44 |
| 69 |
|
| 70 |
5 Function 3 15 2 14 |
| 71 |
3 FunctionParameter 9 16 |
| 72 |
3 FunctionParameter 13 17 |
| 73 |
|
| 74 |
2 Label 18 |
| 75 |
4 Bitcast 25 26 16 |
| 76 |
6 ExtInst 3 46 2 DebugScope 43 |
| 77 |
4 Line 29 15 67 |
| 78 |
8 ExtInst 3 28 2 DebugValue 42 26 45 |
| 79 |
5 ExtInst 3 47 2 DebugNoScope |
| 80 |
1 Return |
| 81 |
|
| 82 |
1 FunctionEnd |
| 83 |
|