Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AMDGPU/lds-link-time-codegen-callgraph.ll
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

63 lines
2.2 KiB
LLVM

; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-enable-object-linking -filetype=obj < %s | llvm-readobj -r --sections - | FileCheck %s
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-enable-object-linking -filetype=asm < %s | FileCheck %s --check-prefix=ASM --implicit-check-not=.amdgpu_num_agpr
; Test that the unified .amdgpu.info section (.amdgpu_info blocks in assembly) is
; emitted with correct relocations when object linking is enabled.
declare void @extern_func()
declare void @tail_extern()
; The .amdgpu.info section should exist as SHT_PROGBITS with SHF_EXCLUDE.
; CHECK: Section {
; CHECK: Name: .amdgpu.info
; CHECK: Type: SHT_PROGBITS
; CHECK: Flags [
; CHECK: SHF_EXCLUDE
; CHECK: ]
; Symbol references in the binary resource metadata still use R_AMDGPU_ABS64 relocations.
; CHECK-DAG: R_AMDGPU_ABS64 my_kernel
; CHECK-DAG: R_AMDGPU_ABS64 helper
; CHECK-DAG: R_AMDGPU_ABS64 extern_func
; COM: Tail-call callee must still be recorded as an INFO_CALL edge.
; CHECK-DAG: R_AMDGPU_ABS64 tail_helper
; CHECK-DAG: R_AMDGPU_ABS64 tail_extern
; COM: Assembly: per-function .amdgpu_info blocks (target flags derived from
; COM: e_flags).
; ASM-DAG: .amdgpu_info helper
; ASM-DAG: .amdgpu_flags {{[0-9]+}}
; ASM-DAG: .amdgpu_num_vgpr {{[0-9]+}}
; ASM-DAG: .amdgpu_num_sgpr {{[0-9]+}}
; ASM-DAG: .amdgpu_private_segment_size {{[0-9]+}}
; ASM-DAG: .amdgpu_call extern_func
; ASM-DAG: .end_amdgpu_info
; ASM-DAG: .amdgpu_info my_kernel
; ASM-DAG: .amdgpu_flags {{[0-9]+}}
; ASM-DAG: .amdgpu_num_vgpr {{[0-9]+}}
; ASM-DAG: .amdgpu_num_sgpr {{[0-9]+}}
; ASM-DAG: .amdgpu_private_segment_size {{[0-9]+}}
; ASM-DAG: .amdgpu_call helper
; ASM-DAG: .end_amdgpu_info
; COM: A tail call is lowered to SI_TCRETURN (isCall = 1). Verify that the
; COM: callee edge is still captured in the .amdgpu_info block of the caller.
; ASM-DAG: .amdgpu_info tail_helper
; ASM-DAG: .amdgpu_call tail_extern
; ASM-DAG: .end_amdgpu_info
define void @helper() {
call void @extern_func()
ret void
}
define amdgpu_kernel void @my_kernel() {
call void @helper()
ret void
}
define void @tail_helper() {
tail call void @tail_extern()
ret void
}