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
59 lines
1.9 KiB
LLVM
59 lines
1.9 KiB
LLVM
;; Test if temporary labels are generated for each indirect callsite.
|
|
;; Test if the .llvm.callgraph section contains the MD5 hash of callees' type (type id)
|
|
;; is correctly paired with its corresponding temporary label generated for indirect
|
|
;; call sites annotated with !callee_type metadata.
|
|
;; Test if the .llvm.callgraph section contains unique direct callees.
|
|
|
|
; RUN: llc -mtriple=x86_64-unknown-linux --call-graph-section -o - < %s | FileCheck %s
|
|
|
|
declare !type !0 void @direct_foo()
|
|
declare !type !1 i32 @direct_bar(i8)
|
|
declare !type !2 ptr @direct_baz(ptr)
|
|
|
|
; CHECK: ball:
|
|
define ptr @ball() {
|
|
entry:
|
|
call void @direct_foo()
|
|
%fp_foo_val = load ptr, ptr null, align 8
|
|
call void (...) %fp_foo_val(), !callee_type !0
|
|
call void @direct_foo()
|
|
%fp_bar_val = load ptr, ptr null, align 8
|
|
%call_fp_bar = call i32 %fp_bar_val(i8 0), !callee_type !2
|
|
%call_fp_bar_direct = call i32 @direct_bar(i8 1)
|
|
%fp_baz_val = load ptr, ptr null, align 8
|
|
%call_fp_baz = call ptr %fp_baz_val(ptr null), !callee_type !4
|
|
call void @direct_foo()
|
|
%call_fp_baz_direct = call ptr @direct_baz(ptr null)
|
|
call void @direct_foo()
|
|
ret ptr %call_fp_baz
|
|
}
|
|
|
|
!0 = !{!1}
|
|
!1 = !{i64 0, !"_ZTSFvE.generalized"}
|
|
!2 = !{!3}
|
|
!3 = !{i64 0, !"_ZTSFicE.generalized"}
|
|
!4 = !{!5}
|
|
!5 = !{i64 0, !"_ZTSFPvS_E.generalized"}
|
|
|
|
; CHECK: .section .llvm.callgraph,"o",@llvm_call_graph,.text
|
|
;; Version
|
|
; CHECK-NEXT: .byte 0
|
|
;; Flags
|
|
; CHECK-NEXT: .byte 7
|
|
;; Function Entry PC
|
|
; CHECK-NEXT: .quad ball
|
|
;; Function type ID -- set to 0 as no type metadata attached to function.
|
|
; CHECK-NEXT: .quad 0
|
|
;; Number of unique direct callees.
|
|
; CHECK-NEXT: .byte 3
|
|
;; Direct callees.
|
|
; CHECK-NEXT: .quad direct_foo
|
|
; CHECK-NEXT: .quad direct_bar
|
|
; CHECK-NEXT: .quad direct_baz
|
|
;; Number of unique indirect target type IDs.
|
|
; CHECK-NEXT: .byte 3
|
|
;; Indirect type IDs.
|
|
; CHECK-NEXT: .quad 4524972987496481828
|
|
; CHECK-NEXT: .quad 3498816979441845844
|
|
; CHECK-NEXT: .quad 8646233951371320954
|