Skip to content

Commit 0019e62

Browse files
committed
update di-subprogram to only use DXIL compatible metadata
the intent of this test is to ensure that the metadata written with the DXIL bitcode writer is correctly read back from being embedded in the DXIL removing the unrecognized metadata retains the test purpose
1 parent 34d6d61 commit 0019e62

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

llvm/test/tools/dxil-dis/di-subprogram.ll

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ target triple = "dxil-unknown-shadermodel6.7-library"
33

44
!llvm.dbg.cu = !{!0}
55
!llvm.module.flags = !{!3, !4}
6-
!llvm.used = !{!5}
7-
!llvm.lines = !{!13, !14, !15, !16}
86

97
; CHECK: !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Some Compiler", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2)
108
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Some Compiler", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
@@ -16,38 +14,3 @@ target triple = "dxil-unknown-shadermodel6.7-library"
1614
!3 = !{i32 2, !"Dwarf Version", i32 4}
1715
; CHECK: !4 = !{i32 2, !"Debug Info Version", i32 3}
1816
!4 = !{i32 2, !"Debug Info Version", i32 3}
19-
20-
; CHECK: !5 = distinct !DISubprogram(name: "fma", scope: !1, file: !1, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, function: !0, variables: !9)
21-
!5 = distinct !DISubprogram(name: "fma", scope: !1, file: !1, line: 1, type: !6, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !9)
22-
23-
; CHECK: !6 = !DISubroutineType(types: !7)
24-
!6 = !DISubroutineType(types: !7)
25-
26-
; CHECK: !7 = !{!8, !8, !8, !8}
27-
!7 = !{!8, !8, !8, !8}
28-
29-
; CHECK: !8 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)
30-
!8 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)
31-
32-
; CHECK: !9 = !{!10, !11, !12}
33-
!9 = !{!10, !11, !12}
34-
35-
; CHECK: !10 = !DILocalVariable(tag: DW_TAG_variable, name: "x", arg: 1, scope: !5, file: !1, line: 1, type: !8)
36-
!10 = !DILocalVariable(name: "x", arg: 1, scope: !5, file: !1, line: 1, type: !8)
37-
38-
; CHECK: !11 = !DILocalVariable(tag: DW_TAG_variable, name: "y", arg: 2, scope: !5, file: !1, line: 1, type: !8)
39-
!11 = !DILocalVariable(name: "y", arg: 2, scope: !5, file: !1, line: 1, type: !8)
40-
41-
; CHECK: !12 = !DILocalVariable(tag: DW_TAG_variable, name: "z", arg: 3, scope: !5, file: !1, line: 1, type: !8)
42-
!12 = !DILocalVariable(name: "z", arg: 3, scope: !5, file: !1, line: 1, type: !8)
43-
44-
45-
; CHECK: !13 = !DILocation(line: 0, scope: !5)
46-
; CHECK: !14 = !DILocation(line: 2, column: 12, scope: !5)
47-
; CHECK: !15 = !DILocation(line: 2, column: 16, scope: !5)
48-
; CHECK: !16 = !DILocation(line: 2, column: 3, scope: !5)
49-
50-
!13 = !DILocation(line: 0, scope: !5)
51-
!14 = !DILocation(line: 2, column: 12, scope: !5)
52-
!15 = !DILocation(line: 2, column: 16, scope: !5)
53-
!16 = !DILocation(line: 2, column: 3, scope: !5)

0 commit comments

Comments
 (0)