| 1 |
; RUN: llc --filetype=obj %s -o - | dxil-dis -o - | FileCheck %s |
| 2 |
target triple = "dxil-unknown-shadermodel6.7-library" |
| 3 |
|
| 4 |
!llvm.module.flags = !{!0, !1} |
| 5 |
!llvm.dbg.cu = !{!2} |
| 6 |
|
| 7 |
!0 = !{i32 2, !"Dwarf Version", i32 4} |
| 8 |
!1 = !{i32 2, !"Debug Info Version", i32 3} |
| 9 |
!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "xyz", isOptimized: true, runtimeVersion: 0, emissionKind: 1, retainedTypes: !4) |
| 10 |
!3 = !DIFile(filename: "input.hlsl", directory: "/some/path") |
| 11 |
!4 = !{!5} |
| 12 |
!5 = !DICompositeType(tag: DW_TAG_array_type, baseType: !6, size: 128, flags: DIFlagVector, elements: !7) |
| 13 |
!6 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float) |
| 14 |
!7 = !{!8} |
| 15 |
!8 = !DISubrange(count: 3) |
| 16 |
|
| 17 |
; CHECK: !llvm.module.flags = !{!0, !1} |
| 18 |
; CHECK: !llvm.dbg.cu = !{!2} |
| 19 |
|
| 20 |
; CHECK: !0 = !{i32 2, !"Dwarf Version", i32 4} |
| 21 |
; CHECK: !1 = !{i32 2, !"Debug Info Version", i32 3} |
| 22 |
; CHECK: !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "xyz", isOptimized: true, runtimeVersion: 0, emissionKind: 1, retainedTypes: !4) |
| 23 |
; CHECK: !3 = !DIFile(filename: "input.hlsl", directory: "/some/path") |
| 24 |
; CHECK: !4 = !{!5} |
| 25 |
; CHECK: !5 = !DICompositeType(tag: DW_TAG_array_type, baseType: !6, size: 128, flags: DIFlagVector, elements: !7) |
| 26 |
; CHECK: !6 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float) |
| 27 |
; CHECK: !7 = !{!8} |
| 28 |
; CHECK: !8 = !DISubrange(count: 3) |