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
41 lines
1.3 KiB
LLVM
41 lines
1.3 KiB
LLVM
;; Tests that we store the type identifiers in .llvm.callgraph section of the object file.
|
|
|
|
; REQUIRES: x86-registered-target
|
|
; REQUIRES: arm-registered-target
|
|
|
|
; RUN: llc -mtriple=x86_64-unknown-linux --call-graph-section -filetype=obj -o - < %s | \
|
|
; RUN: llvm-readelf -x .llvm.callgraph - | FileCheck %s
|
|
|
|
declare !type !0 void @foo()
|
|
|
|
declare !type !1 i32 @bar(i8)
|
|
|
|
declare !type !2 ptr @baz(ptr)
|
|
|
|
define void @main() {
|
|
entry:
|
|
%fp_foo_val = load ptr, ptr null, align 8
|
|
call void (...) %fp_foo_val(), !callee_type !1
|
|
%fp_bar_val = load ptr, ptr null, align 8
|
|
%call_fp_bar = call i32 %fp_bar_val(i8 0), !callee_type !3
|
|
%fp_baz_val = load ptr, ptr null, align 8
|
|
%call_fp_baz = call ptr %fp_baz_val(ptr null), !callee_type !4
|
|
ret void
|
|
}
|
|
|
|
;; Check that the numeric type id (md5 hash) for the below type ids are emitted
|
|
;; to the callgraph section.
|
|
!0 = !{i64 0, !"_ZTSFvE.generalized"}
|
|
!1 = !{!0}
|
|
!2 = !{i64 0, !"_ZTSFicE.generalized"}
|
|
!3 = !{!2}
|
|
!4 = !{!5}
|
|
!5 = !{i64 0, !"_ZTSFPvS_E.generalized"}
|
|
|
|
;; Make sure following type IDs are in call graph section
|
|
;; 0x5eecb3e2444f731f, 0x814b8e305486bc59, 0xf897fd777ade6814
|
|
; CHECK: Hex dump of section '.llvm.callgraph':
|
|
; CHECK-NEXT: 0x00000000 00050000 00000000 00000000 00000000
|
|
; CHECK-NEXT: 0x00000010 00000324 44f731f5 eecb3e54 86bc5981
|
|
; CHECK-NEXT: 0x00000020 4b8e307a de6814f8 97fd77
|