Skip to content

clang/test/CodeGenSYCL/debug-info-srcpos-kernel.cpp failing with latest compiler. #17964

Closed
@lbushi25

Description

@lbushi25

Describe the bug

The test clang/test/CodeGenSYCL/debug-info-srcpos-kernel.cpp is failing with the latest compiler.

To reproduce

clang -fno-sycl-force-inline-kernel-lambda -fsycl-device-only debug-info-srcpos-kernel.cpp -S -emit-llvm -O0 -g -o - | FileCheck debug-info-srcpos-kernel.cpp

debug-info-srcpos-kernel.cpp:36:11: error: CHECK: expected string not found in input
// CHECK: [[FILE]] = !DIFile(filename: "{{.*}}debug-info-srcpos-kernel.cpp"{{.*}})
          ^
<stdin>:114:171: note: scanning from here
!27 = distinct !DISubprogram(name: "_ZTSZ4mainE19use_kernel_for_test", scope: !1, file: !1, line: 21, type: !28, scopeLine: 15, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !32)
                                                                                                                                                                          ^
<stdin>:114:171: note: with "FILE" equal to "!1"
!27 = distinct !DISubprogram(name: "_ZTSZ4mainE19use_kernel_for_test", scope: !1, file: !1, line: 21, type: !28, scopeLine: 15, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !32)
                                                                                                                                                                          ^
<stdin>:115:3: note: possible intended match here
!28 = !DISubroutineType(cc: DW_CC_LLVM_OpenCLKernel, types: !29)
  ^

Input file: <stdin>
Check file: debug-info-srcpos-kernel.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          109: !22 = !{i32 1, !"sycl-device", i32 1}
          110: !23 = !{i32 7, !"frame-pointer", i32 2}
          111: !24 = !{i32 1, i32 2}
          112: !25 = !{i32 4, i32 100000}
          113: !26 = !{!"clang version 21.0.0git (https://github.com/intel/llvm.git ec303183bd951fce10d2a408d348653fc90ccac3)"}
          114: !27 = distinct !DISubprogram(name: "_ZTSZ4mainE19use_kernel_for_test", scope: !1, file: !1, line: 21, type: !28, scopeLine: 15, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !32)
check:36'0                                                                                                                                                                               X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:36'1                                                                                                                                                                                                                                             with "FILE" equal to "!1"
          115: !28 = !DISubroutineType(cc: DW_CC_LLVM_OpenCLKernel, types: !29)
check:36'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:36'2       ?                                                               possible intended match
          116: !29 = !{null, !30}
check:36'0     ~~~~~~~~~~~~~~~~~~~
          117: !30 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !31, size: 64)
check:36'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          118: !31 = !DICompositeType(tag: DW_TAG_structure_type, name: "opencl_sampler_t", file: !1, flags: DIFlagFwdDecl)
check:36'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          119: !32 = !{}
check:36'0     ~~~~~~~~~~
          120: !33 = !{i32 -1}

Environment

  • OS: Linux
  • Target device and vendor: N/A
  • DPC++ version: ec30318)
  • Dependencies version: [opencl:cpu][opencl:0] Intel(R) OpenCL, Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz ```
    OpenCL 3.0 (Build 0) [2023.16.6.0.28_042959]

Platforms: 1
Platform [#1]:
Version : OpenCL 3.0 LINUX
Name : Intel(R) OpenCL
Vendor : Intel(R) Corporation
Devices : 1
Device [#0]:
Type : cpu
Version : OpenCL 3.0 (Build 0)
Name : Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
Vendor : Intel(R) Corporation
Driver : 2023.16.6.0.28_042959
DeviceID : 394918
Num SubDevices : 2
Num SubSubDevices : 0
Aspects : cpu fp64 online_compiler online_linker queue_profiling usm_device_allocations usm_host_allocations usm_shared_allocations usm_system_allocations ext_intel_gpu_slices ext_intel_gpu_subslices_per_slice ext_intel_gpu_eu_count_per_subslice usm_atomic_host_allocations usm_atomic_shared_allocations atomic64 ext_oneapi_srgb ext_intel_gpu_hw_threads_per_eu ext_oneapi_cuda_async_barrier ext_intel_device_id ext_intel_legacy_image ext_oneapi_ballot_group ext_oneapi_fixed_size_group ext_oneapi_opportunistic_group ext_oneapi_tangle_group ext_oneapi_private_alloca ext_oneapi_virtual_functions
info::device::sub_group_sizes: 4 8 16 32 64
Architecture: x86_64
default_selector() : cpu, Intel(R) OpenCL, Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz OpenCL 3.0 (Build 0) [2023.16.6.0.28_042959]
accelerator_selector() : No device of requested type available.
cpu_selector() : cpu, Intel(R) OpenCL, Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz OpenCL 3.0 (Build 0) [2023.16.6.0.28_042959]
gpu_selector() : No device of requested type available.
custom_selector(gpu) : No device of requested type available.
custom_selector(cpu) : cpu, Intel(R) OpenCL, Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz OpenCL 3.0 (Build 0) [2023.16.6.0.28_042959]
custom_selector(acc) : No device of requested type available.


### Additional context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions