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
69 lines
2.8 KiB
LLVM
69 lines
2.8 KiB
LLVM
; RUN: llc -O2 %s -o - -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=OPTS
|
|
; RUN: llc -O0 %s -o - -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=UNOPT
|
|
|
|
;; Test that, even though there are no source locations attached to the foo
|
|
;; function, we still give it the start-of-function source location of the
|
|
;; definition line. Otherwise, this function would have no entry in the
|
|
;; line table at all.
|
|
|
|
; OPTS-LABEL: foo:
|
|
; OPTS-NEXT: .Lfunc_begin0:
|
|
; OPTS-NEXT: .file 0 "." "foobar.c"
|
|
; OPTS-NEXT: .cfi_startproc
|
|
; OPTS-NEXT: # %bb.0:
|
|
; OPTS-NEXT: .loc 0 1 0 prologue_end
|
|
; OPTS-LABEL: bar:
|
|
|
|
define dso_local noundef i32 @foo(ptr nocapture noundef writeonly %bar) local_unnamed_addr !dbg !10 {
|
|
entry:
|
|
store i32 0, ptr %bar, align 4
|
|
ret i32 0
|
|
}
|
|
|
|
;; In a function with no source location, but multiple blocks, there will be
|
|
;; an opening scope-line. Test for this behaviour, and preserve the
|
|
;; unconditional branch by compiling -O0.
|
|
|
|
; UNOPT-LABEL: bar:
|
|
; UNOPT-NEXT: .Lfunc_begin1:
|
|
; UNOPT-NEXT: .cfi_startproc
|
|
; UNOPT-LABEL: %bb.0:
|
|
; UNOPT-NEXT: .loc 0 11 0 prologue_end
|
|
; UNOPT-NEXT: movq %rdi, -8(%rsp)
|
|
; UNOPT-NEXT: jmp .LBB1_1
|
|
; UNOPT-LABEL: .LBB1_1:
|
|
; UNOPT-NEXT: movq -8(%rsp), %rax
|
|
|
|
define dso_local noundef i32 @bar(ptr nocapture noundef writeonly %baz) local_unnamed_addr !dbg !20 {
|
|
entry:
|
|
br label %bb1
|
|
bb1:
|
|
store i32 0, ptr %baz, align 4
|
|
ret i32 0
|
|
}
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!2, !3}
|
|
!llvm.ident = !{!9}
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
|
|
!1 = !DIFile(filename: "foobar.c", directory: ".")
|
|
!2 = !{i32 7, !"Dwarf Version", i32 5}
|
|
!3 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!9 = !{!"clang"}
|
|
!10 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !11, scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !15)
|
|
!11 = !DISubroutineType(types: !12)
|
|
!12 = !{!13, !14}
|
|
!13 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
|
!14 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 64)
|
|
!15 = !{!16}
|
|
!16 = !DILocalVariable(name: "bar", arg: 1, scope: !10, file: !1, line: 1, type: !14)
|
|
!17 = !DILocation(line: 0, scope: !10)
|
|
!18 = !DILocation(line: 2, column: 8, scope: !10)
|
|
!20 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 11, type: !11, scopeLine: 11, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !25)
|
|
!25 = !{!26}
|
|
!26 = !DILocalVariable(name: "bar", arg: 1, scope: !20, file: !1, line: 11, type: !14)
|
|
!27 = !DILocation(line: 0, scope: !20)
|
|
!28 = !DILocation(line: 12, column: 8, scope: !20)
|
|
|