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
39 lines
1.2 KiB
LLVM
39 lines
1.2 KiB
LLVM
;; Tests that we store the type identifiers in .llvm.callgraph section of the object file for tailcalls.
|
|
|
|
; 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
|
|
|
|
define i32 @check_tailcall(ptr %func, i8 %x) !type !0 {
|
|
entry:
|
|
%call = tail call i32 %func(i8 signext %x), !callee_type !1
|
|
ret i32 %call
|
|
}
|
|
|
|
define i32 @main(i32 %argc) !type !3 {
|
|
entry:
|
|
%andop = and i32 %argc, 1
|
|
%cmp = icmp eq i32 %andop, 0
|
|
%foo.bar = select i1 %cmp, ptr @foo, ptr @bar
|
|
%call.i = tail call i32 %foo.bar(i8 signext 97), !callee_type !1
|
|
ret i32 %call.i
|
|
}
|
|
|
|
declare !type !2 i32 @foo(i8 signext)
|
|
|
|
declare !type !2 i32 @bar(i8 signext)
|
|
|
|
!0 = !{i64 0, !"_ZTSFiPvcE.generalized"}
|
|
!1 = !{!2}
|
|
!2 = !{i64 0, !"_ZTSFicE.generalized"}
|
|
!3 = !{i64 0, !"_ZTSFiiE.generalized"}
|
|
|
|
; CHECK: Hex dump of section '.llvm.callgraph':
|
|
; CHECK-NEXT: 0x00000000 00050000 00000000 00008e19 0b7f3326
|
|
; CHECK-NEXT: 0x00000010 e3000154 86bc5981 4b8e3000 05000000
|
|
;; Verify that the type id 0x308e4b8159bc8654 is in section.
|
|
; CHECK-NEXT: 0x00000020 00000000 00a150b8 3e0cfe3c b2015486
|
|
; CHECK-NEXT: 0x00000030 bc59814b 8e30
|