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
+ ; CHECK-SPIRV: TypeInt [[#TypeInt64Id:]] 64 0
13
+ ; CHECK-SPIRV: Constant [[#TypeInt64Id]] [[#LowerBoundId:]] 1 0
14
+ ; CHECK-SPIRV: Constant [[#TypeInt64Id]] [[#NegativeCount:]] 4294967295 4294967295
15
+
14
16
; CHECK-SPIRV: [[#DbgFuncId:]] [[#]] DebugFunction [[#FuncNameId]]
15
17
; CHECK-SPIRV: [[#DbgTemplateId:]] [[#]] DebugTemplate [[#DbgFuncId]]
16
18
; CHECK-SPIRV: [[#]] [[#DbgLocVarId:]] [[#]] DebugLocalVariable [[#VarNameId]] [[#]] [[#]] [[#]] [[#]] [[#DbgTemplateId]]
19
21
; CHECK-SPIRV: [[#DbgExprId:]] [[#]] DebugExpression
20
22
; CHECK-SPIRV: DebugTypeArray [[#]] [[#DbgExprId]] [[#DbgExprId]]
21
23
24
+ ; CHECK-SPIRV: DebugTypeArray [[#]] [[#NegativeCount]] [[#]]
25
+
22
26
; CHECK-LLVM: !DICompositeType(tag: DW_TAG_array_type, baseType: ![[#BaseType:]], size: 32, elements: ![[#Subrange1:]])
23
27
; CHECK-LLVM: [[#BaseType]] = !DIBasicType(name: "REAL*4", size: 32, encoding: DW_ATE_float)
24
28
; CHECK-LLVM: [[#Subrange1]] = !{![[#Subrange2:]]}
31
35
32
36
; CHECK-LLVM: !DISubrange(count: 1000, lowerBound: 1)
33
37
38
+ ; CHECK-LLVM: !DICompositeType(tag: DW_TAG_array_type, baseType: ![[#BaseType:]], elements: ![[#Subrage:]])
39
+ ; CHECK-LLVM: ![[#BaseType]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
40
+ ; CHECK-LLVM: ![[#Subrage]] = !{![[#Subrage:]]}
41
+ ; CHECK-LLVM: ![[#Subrage]] = !DISubrange(count: -1
42
+
34
43
; ModuleID = 'DebugInfoSubrangeUpperBound.bc'
35
44
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"
36
45
target triple = "spir64-unknown-unknown"
@@ -40,12 +49,13 @@ target triple = "spir64-unknown-unknown"
40
49
%structtype2 = type { i64 , i64 , i64 }
41
50
42
51
; Function Attrs: noinline nounwind
43
- define spir_kernel void @__omp_offloading_811_198142f_random_fill_sp_l25 (%structtype* byval (%structtype ) %"ascast$val" , [1000 x i32 ] addrspace (1 )* noalias %"ascastB$val" ) #0 !kernel_arg_addr_space !9 !kernel_arg_access_qual !10 !kernel_arg_type !11 !kernel_arg_type_qual !12 !kernel_arg_base_type !11 {
52
+ define spir_kernel void @__omp_offloading_811_198142f_random_fill_sp_l25 (i32 addrspace ( 1 )* noalias %0 , %structtype* byval (%structtype ) %"ascast$val" , [1000 x i32 ] addrspace (1 )* noalias %"ascastB$val" ) #0 !kernel_arg_addr_space !9 !kernel_arg_access_qual !10 !kernel_arg_type !11 !kernel_arg_type_qual !12 !kernel_arg_base_type !11 {
44
53
newFuncRoot:
45
54
%.ascast = bitcast %structtype* %"ascast$val" to %"QNCA_a0$float" *
46
55
call void @llvm.dbg.value (metadata %"QNCA_a0$float" * %.ascast , metadata !13 , metadata !DIExpression (DW_OP_deref)), !dbg !27
47
56
call void @llvm.dbg.value (metadata %"QNCA_a0$float" * %.ascast , metadata !28 , metadata !DIExpression (DW_OP_deref)), !dbg !42
48
- call void @llvm.dbg.value (metadata [1000 x i32 ] addrspace (1 )* %"ascastB$val" , metadata !47 , metadata !DIExpression (DW_OP_deref)), !dbg !56
57
+ call void @llvm.dbg.value (metadata [1000 x i32 ] addrspace (1 )* %"ascastB$val" , metadata !47 , metadata !DIExpression (DW_OP_deref)), !dbg !51
58
+ call void @llvm.dbg.value (metadata i32 addrspace (1 )* %0 , metadata !54 , metadata !DIExpression (DW_OP_deref)), !dbg !59
49
59
ret void
50
60
}
51
61
@@ -117,4 +127,12 @@ attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }
117
127
!48 = !DICompositeType (tag: DW_TAG_array_type, baseType: !43 , elements: !49 )
118
128
!49 = !{!50 }
119
129
!50 = !DISubrange (count: 1000 , lowerBound: 1 )
120
- !56 = !DILocation (line: 27 , column: 24 , scope: !46 )
130
+ !51 = !DILocation (line: 27 , column: 24 , scope: !46 )
131
+ !52 = distinct !DISubprogram (name: "test" , scope: !3 , file: !3 , line: 51 , type: !53 , scopeLine: 51 , flags: DIFlagArtificial, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !2 )
132
+ !53 = !DISubroutineType (types: !7 )
133
+ !54 = !DILocalVariable (name: "isHost" , scope: !52 , file: !3 , line: 34 , type: !55 )
134
+ !55 = !DICompositeType (tag: DW_TAG_array_type, baseType: !56 , elements: !57 )
135
+ !56 = !DIBasicType (name: "int" , size: 32 , encoding: DW_ATE_signed)
136
+ !57 = !{!58 }
137
+ !58 = !DISubrange (count: -1 )
138
+ !59 = !DILocation (line: 34 , column: 33 , scope: !52 )
0 commit comments