|
20 | 20 | ; LLVM with typed pointers: |
21 | 21 | ; RUN: llvm-as -opaque-pointers=0 %s -o %t |
22 | 22 | ; RUN: ocloc compile -llvm_input -file %t -device dg2 -options "-g -cl-opt-disable -igc_opts 'ElfDumpEnable=1, DumpUseShorterName=0, DebugDumpNamePrefix=%t_'" |
23 | | -; RUN: oneapi-readelf --debug-dump %t_OCL_simd32__ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E13simple_kernel.elf | FileCheck %s |
| 23 | +; RUN: oneapi-readelf --debug-dump %t_OCL_simd32_foo.elf | FileCheck %s |
24 | 24 |
|
25 | 25 | ; CHECK DW_AT_name : typeinfo name for main::'lambda'(sycl::_V1::handler&)::operator()(sycl::_V1::handler&) const::simple_kernel |
26 | 26 | ; CHECK: DW_TAG_enumeration_type |
|
31 | 31 | @a = addrspace(1) global i64 0, align 8, !dbg !0 |
32 | 32 |
|
33 | 33 | ; Function Attrs: nounwind |
34 | | -define spir_kernel void @_ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E13simple_kernel() #0 !dbg !17 { |
| 34 | +define spir_kernel void @foo() #0 !dbg !17 { |
35 | 35 | entry: |
36 | 36 | %b = alloca i32, align 4 |
37 | 37 | call void @llvm.dbg.value(metadata i32* %b, metadata !20, metadata !22), !dbg !23 |
@@ -65,7 +65,7 @@ attributes #1 = { nounwind readnone } |
65 | 65 | !14 = !{!0} |
66 | 66 | !15 = !{i32 2, !"Dwarf Version", i32 4} |
67 | 67 | !16 = !{i32 1, !"Debug Info Version", i32 3} |
68 | | -!17 = distinct !DISubprogram(name: "_ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E13simple_kernel", scope: !2, file: !2, line: 3, type: !18, flags: DIFlagPrototyped, unit: !8, retainedNodes: !13) |
| 68 | +!17 = distinct !DISubprogram(name: "foo", scope: !2, file: !2, line: 3, type: !18, flags: DIFlagPrototyped, unit: !8, retainedNodes: !13) |
69 | 69 | !18 = !DISubroutineType(types: !19) |
70 | 70 | !19 = !{null} |
71 | 71 | !20 = !DILocalVariable(name: "b", scope: !17, file: !2, line: 4, type: !21) |
|
0 commit comments