9
9
10
10
; CHECK-SPIRV: String [[#VarNameId:]] "A$1$upperbound"
11
11
; CHECK-SPIRV: [[#FuncNameId:]] "random_fill_sp"
12
+ ; CHECK-SPIRV: TypeInt [[#TypeIntId:]] 64 0
13
+ ; CHECK-SPIRV: Constant [[#TypeIntId]] [[#LowerBoundId:]] 1 0
12
14
; CHECK-SPIRV: [[#DbgFuncId:]] [[#]] DebugFunction [[#FuncNameId]]
13
15
; CHECK-SPIRV: [[#DbgTemplateId:]] [[#]] DebugTemplate [[#DbgFuncId]]
14
16
; CHECK-SPIRV: [[#]] [[#DbgLocVarId:]] [[#]] DebugLocalVariable [[#VarNameId]] [[#]] [[#]] [[#]] [[#]] [[#DbgTemplateId]]
15
- ; CHECK-SPIRV: DebugTypeArray [[#]] [[#DbgLocVarId]]
17
+ ; CHECK-SPIRV: DebugTypeArray [[#]] [[#DbgLocVarId]] [[#LowerBoundId]]
18
+
19
+ ; CHECK-SPIRV: [[#DbgExprId:]] [[#]] DebugExpression
20
+ ; CHECK-SPIRV: DebugTypeArray [[#]] [[#DbgExprId]] [[#DbgExprId]]
16
21
17
22
; CHECK-LLVM: !DICompositeType(tag: DW_TAG_array_type, baseType: ![[#BaseType:]], size: 32, elements: ![[#Subrange1:]])
18
23
; CHECK-LLVM: [[#BaseType]] = !DIBasicType(name: "REAL*4", size: 32, encoding: DW_ATE_float)
19
24
; CHECK-LLVM: [[#Subrange1]] = !{![[#Subrange2:]]}
20
25
; CHECK-LLVM: [[#Subrange2:]] = !DISubrange(lowerBound: 1, upperBound: ![[#UpperBound:]])
21
26
; CHECK-LLVM: [[#UpperBound]] = !DILocalVariable(name: "A$1$upperbound"
22
27
28
+ ; CHECK-LLVM: !DICompositeType(tag: DW_TAG_array_type, baseType: ![[#]], size: 32, elements: ![[#SubrangeExpr1:]])
29
+ ; CHECK-LLVM: [[#SubrangeExpr1]] = !{![[#SubrangeExpr2:]]}
30
+ ; CHECK-LLVM: ![[#SubrangeExpr2]] = !DISubrange(lowerBound: !DIExpression(), upperBound: !DIExpression())
31
+
23
32
; ModuleID = 'DebugInfoSubrangeUpperBound.bc'
24
33
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024"
25
34
target triple = "spir64-unknown-unknown"
@@ -33,6 +42,7 @@ define spir_kernel void @__omp_offloading_811_198142f_random_fill_sp_l25(%struct
33
42
newFuncRoot:
34
43
%.ascast = bitcast %structtype* %"ascast$val" to %"QNCA_a0$float" *
35
44
call void @llvm.dbg.value (metadata %"QNCA_a0$float" * %.ascast , metadata !13 , metadata !DIExpression (DW_OP_deref)), !dbg !27
45
+ call void @llvm.dbg.value (metadata %"QNCA_a0$float" * %.ascast , metadata !28 , metadata !DIExpression (DW_OP_deref)), !dbg !42
36
46
ret void
37
47
}
38
48
@@ -81,3 +91,18 @@ attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }
81
91
!25 = !{!23 }
82
92
!26 = !DIBasicType (name: "INTEGER*8" , size: 64 , encoding: DW_ATE_signed)
83
93
!27 = !DILocation (line: 15 , column: 67 , scope: !14 )
94
+ !28 = !DILocalVariable (name: "a" , scope: !29 , file: !3 , line: 15 , type: !33 )
95
+ !29 = distinct !DISubprogram (name: "random_fill_sp.DIR.OMP.TARGET.8.split.split.split.split" , scope: null , file: !3 , line: 25 , type: !30 , scopeLine: 25 , flags: DIFlagArtificial, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !2 , templateParams: !7 , retainedNodes: !32 )
96
+ !30 = !DISubroutineType (types: !31 )
97
+ !31 = !{null }
98
+ !32 = !{!28 }
99
+ !33 = !DIDerivedType (tag: DW_TAG_pointer_type, baseType: !34 , size: 64 )
100
+ !34 = !DICompositeType (tag: DW_TAG_array_type, baseType: !35 , size: 32 , elements: !36 )
101
+ !35 = !DIBasicType (name: "REAL*4" , size: 32 , encoding: DW_ATE_float)
102
+ !36 = !{!37 }
103
+ !37 = !DISubrange (lowerBound: !DIExpression (), upperBound: !DIExpression ())
104
+ !38 = !DILocalVariable (name: "A$1$upperbound" , scope: !39 , type: !41 , flags: DIFlagArtificial)
105
+ !39 = distinct !DISubprogram (name: "random_fill_sp" , linkageName: "random_fill_sp" , scope: null , file: !3 , line: 15 , type: !30 , scopeLine: 15 , spFlags: DISPFlagDefinition, unit: !2 , templateParams: !7 , retainedNodes: !40 )
106
+ !40 = !{!38 }
107
+ !41 = !DIBasicType (name: "INTEGER*8" , size: 64 , encoding: DW_ATE_signed)
108
+ !42 = !DILocation (line: 15 , column: 67 , scope: !29 )
0 commit comments