CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
76 lines
3.7 KiB
LLVM
76 lines
3.7 KiB
LLVM
; Make sure that absolute source dir is detected correctly regardless of the platform.
|
|
|
|
; On powerpc llvm-nm describes win_func as a global variable, not a function. It breaks the test.
|
|
; On PlayStation, (pre-relocated) .debug_aranges cause symbolization to fail, also breaking the test.
|
|
; These are not essential to DWARF path handling code we're testing here.
|
|
; UNSUPPORTED: target=powerpc{{.*}}, target=x86_64-{{.*-ps[45]}}
|
|
; REQUIRES: object-emission
|
|
; RUN: %llc_dwarf -O0 -filetype=obj -o %t < %s
|
|
; RUN: llvm-nm --radix=o %t | grep posix_absolute_func > %t.posix_absolute_func
|
|
; RUN: llvm-nm --radix=o %t | grep posix_relative_func > %t.posix_relative_func
|
|
; RUN: llvm-nm --radix=o %t | grep win_func > %t.win_func
|
|
; RUN: llvm-symbolizer --functions=linkage --inlining --no-demangle --obj %t < %t.posix_absolute_func | FileCheck %s --check-prefix=POSIX_A
|
|
; RUN: llvm-symbolizer --functions=linkage --inlining --no-demangle --obj %t < %t.posix_relative_func | FileCheck %s --check-prefix=POSIX_R
|
|
; RUN: llvm-symbolizer --functions=linkage --inlining --no-demangle --obj %t < %t.win_func | FileCheck %s --check-prefix=WIN
|
|
|
|
;POSIX_A: posix_absolute_func
|
|
;POSIX_A: /absolute/posix/path{{[\/]}}posix.c
|
|
|
|
;POSIX_R: posix_relative_func
|
|
;POSIX_R: /ABSOLUTE/CU/PATH{{[\/]}}relative/posix/path{{[\/]}}posix2.c
|
|
|
|
;WIN: win_func
|
|
;WIN: E:\absolute\windows\path{{[\/]}}win.c
|
|
|
|
define i32 @win_func() #0 !dbg !54 {
|
|
ret i32 5, !dbg !511
|
|
}
|
|
|
|
define i32 @posix_absolute_func() #0 !dbg !34 {
|
|
ret i32 3, !dbg !311
|
|
}
|
|
|
|
define i32 @posix_relative_func() #0 !dbg !44 {
|
|
ret i32 4, !dbg !411
|
|
}
|
|
|
|
!llvm.dbg.cu = !{!50, !30, !40}
|
|
!llvm.module.flags = !{!8, !9}
|
|
!llvm.ident = !{!10}
|
|
!8 = !{i32 2, !"Dwarf Version", i32 4}
|
|
!9 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!10 = !{!"clang"}
|
|
|
|
!50 = distinct !DICompileUnit(language: DW_LANG_C99, file: !512, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !52)
|
|
!51 = !DIFile(filename: "win.c", directory: "E:\\absolute\\windows\\path")
|
|
!52 = !{}
|
|
!53 = !{!54}
|
|
!54 = distinct !DISubprogram(name: "win_func", scope: !51, file: !51, line: 55, type: !55, unit: !50, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, retainedNodes: !52)
|
|
!55 = !DISubroutineType(types: !56)
|
|
!56 = !{!57}
|
|
!57 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
|
!511 = !DILocation(line: 55, column: 2, scope: !54)
|
|
!512 = !DIFile(filename: "a.c", directory: "/WIN_CU/PATH")
|
|
|
|
!30 = distinct !DICompileUnit(language: DW_LANG_C99, file: !312, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !32)
|
|
!31 = !DIFile(filename: "posix.c", directory: "/absolute/posix/path")
|
|
!32 = !{}
|
|
!33 = !{!34}
|
|
!34 = distinct !DISubprogram(name: "posix_absolute_func", scope: !31, file: !31, line: 33, type: !35, unit: !30, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, retainedNodes: !32)
|
|
!35 = !DISubroutineType(types: !36)
|
|
!36 = !{!37}
|
|
!37 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
|
!311 = !DILocation(line: 33, column: 2, scope: !34)
|
|
!312 = !DIFile(filename: "b.c", directory: "/POSIX_CU/PATH")
|
|
|
|
!40 = distinct !DICompileUnit(language: DW_LANG_C99, file: !412, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !42)
|
|
!41 = !DIFile(filename: "posix2.c", directory: "relative/posix/path")
|
|
!42 = !{}
|
|
!43 = !{!44}
|
|
!44 = distinct !DISubprogram(name: "posix_relative_func", scope: !41, file: !41, line: 44, type: !45, unit: !40, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, retainedNodes: !42)
|
|
!45 = !DISubroutineType(types: !46)
|
|
!46 = !{!47}
|
|
!47 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
|
!411 = !DILocation(line: 44, column: 2, scope: !44)
|
|
!412 = !DIFile(filename: "c.c", directory: "/ABSOLUTE/CU/PATH")
|