| 1 |
; RUN: llvm-as < %s -o %t.bc |
| 2 |
; RUN: llvm-spirv %t.bc -o %t.spv |
| 3 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll |
| 4 |
|
| 5 |
; RUN: llc -mtriple=%triple %t.ll -filetype=obj -o - | llvm-objdump -h - | FileCheck %s |
| 6 |
; REQUIRES: default_triple |
| 7 |
|
| 8 |
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64" |
| 9 |
target triple = "spir64-unknown-unknown" |
| 10 |
|
| 11 |
; CHECK-NOT: .debug_ |
| 12 |
|
| 13 |
!llvm.dbg.cu = !{!0, !5} |
| 14 |
!llvm.module.flags = !{!3, !4} |
| 15 |
|
| 16 |
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "LLVM", isOptimized: false, runtimeVersion: 2, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !2) |
| 17 |
!1 = !DIFile(filename: "<stdin>", directory: "/") |
| 18 |
!2 = !{} |
| 19 |
!3 = !{i32 2, !"Dwarf Version", i32 4} |
| 20 |
!4 = !{i32 2, !"Debug Info Version", i32 3} |
| 21 |
!5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "LLVM", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, imports: !6) |
| 22 |
!6 = !{!7} |
| 23 |
!7 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !8, entity: !11, file: !1, line: 3) |
| 24 |
!8 = distinct !DISubprogram(name: "f2", linkageName: "_Z2f2v", scope: !1, file: !1, line: 2, type: !9, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: false, unit: !5, retainedNodes: !2) |
| 25 |
!9 = !DISubroutineType(types: !10) |
| 26 |
!10 = !{null} |
| 27 |
!11 = !DINamespace(name: "ns", scope: null) |