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
43 lines
1.7 KiB
LLVM
43 lines
1.7 KiB
LLVM
;; Ensure __llvm_gcov_(writeout|reset|init) have the correct !kcfi_type
|
|
;; with integer normalization.
|
|
; RUN: mkdir -p %t && cd %t
|
|
; RUN: opt < %s -S -passes=insert-gcov-profiling \
|
|
; RUN: -mtriple=x86_64-unknown-linux-gnu | FileCheck \
|
|
; RUN: --check-prefixes=CHECK,CHECK-CTOR-INIT %s
|
|
; RUN: opt < %s -S -passes=insert-gcov-profiling \
|
|
; RUN: -mtriple=powerpc64-ibm-aix | FileCheck \
|
|
; RUN: --check-prefixes=CHECK,CHECK-RT-INIT %s
|
|
|
|
; Check for gcov initialization function pointers when we initialize
|
|
; the writeout and reset functions in the runtime.
|
|
; CHECK-RT-INIT: @__llvm_covinit_functions = private constant { ptr, ptr } { ptr @__llvm_gcov_writeout, ptr @__llvm_gcov_reset }, section "__llvm_covinit"
|
|
|
|
define dso_local void @empty() !dbg !5 {
|
|
entry:
|
|
ret void, !dbg !8
|
|
}
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!3, !4, !9, !10}
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, emissionKind: FullDebug, enums: !2)
|
|
!1 = !DIFile(filename: "a.c", directory: "")
|
|
!2 = !{}
|
|
!3 = !{i32 7, !"Dwarf Version", i32 5}
|
|
!4 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!5 = distinct !DISubprogram(name: "empty", scope: !1, file: !1, line: 1, type: !6, scopeLine: 1, flags: DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)
|
|
!6 = !DISubroutineType(types: !7)
|
|
!7 = !{null}
|
|
!8 = !DILocation(line: 2, column: 1, scope: !5)
|
|
!9 = !{i32 4, !"kcfi", i32 1}
|
|
!10 = !{i32 4, !"cfi-normalize-integers", i32 1}
|
|
|
|
; CHECK: define internal void @__llvm_gcov_writeout()
|
|
; CHECK-SAME: !kcfi_type ![[#TYPE:]]
|
|
; CHECK: define internal void @__llvm_gcov_reset()
|
|
; CHECK-SAME: !kcfi_type ![[#TYPE]]
|
|
; CHECK-CTOR-INIT: define internal void @__llvm_gcov_init()
|
|
; CHECK-CTOR-INIT-SAME: !kcfi_type ![[#TYPE]]
|
|
|
|
; CHECK: ![[#TYPE]] = !{i32 -440107680}
|