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
64 lines
2.3 KiB
LLVM
64 lines
2.3 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals
|
|
; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor %s | FileCheck %s
|
|
|
|
%0 = type { ptr, ptr }
|
|
|
|
define internal fastcc i1 @widget(ptr %arg) {
|
|
; CHECK-LABEL: define {{[^@]+}}@widget
|
|
; CHECK-SAME: (ptr [[ARG:%.*]]) {
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: [[TMP:%.*]] = getelementptr inbounds [[TMP0:%.*]], ptr [[ARG]], i64 0, i32 1
|
|
; CHECK-NEXT: [[TMP1:%.*]] = load ptr, ptr [[TMP]], align 8
|
|
; CHECK-NEXT: [[TMP2:%.*]] = call fastcc double @baz(ptr [[TMP1]])
|
|
; CHECK-NEXT: ret i1 false
|
|
;
|
|
bb:
|
|
%tmp = getelementptr inbounds %0, ptr %arg, i64 0, i32 1
|
|
%tmp1 = load ptr, ptr %tmp, align 8
|
|
%tmp2 = call fastcc double @baz(ptr %tmp1)
|
|
ret i1 false
|
|
}
|
|
|
|
define internal fastcc double @baz(ptr %arg) {
|
|
; CHECK-LABEL: define {{[^@]+}}@baz
|
|
; CHECK-SAME: (ptr [[ARG:%.*]]) {
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: [[TMP1:%.*]] = load ptr, ptr [[ARG]], align 8
|
|
; CHECK-NEXT: [[TMP2:%.*]] = tail call double [[TMP1]]()
|
|
; CHECK-NEXT: br label [[BB3:%.*]]
|
|
; CHECK: bb3:
|
|
; CHECK-NEXT: [[TMP4:%.*]] = getelementptr inbounds [[TMP0:%.*]], ptr [[ARG]], i64 0, i32 1
|
|
; CHECK-NEXT: br label [[BB5:%.*]]
|
|
; CHECK: bb5:
|
|
; CHECK-NEXT: [[TMP6:%.*]] = load ptr, ptr [[TMP4]], align 8
|
|
; CHECK-NEXT: [[TMP7:%.*]] = call fastcc i1 @widget(ptr [[TMP6]])
|
|
; CHECK-NEXT: br label [[BB5]]
|
|
;
|
|
bb:
|
|
%tmp1 = load ptr, ptr %arg, align 8
|
|
%tmp2 = tail call double %tmp1()
|
|
br label %bb3
|
|
|
|
bb3: ; preds = %bb
|
|
%tmp4 = getelementptr inbounds %0, ptr %arg, i64 0, i32 1
|
|
br label %bb5
|
|
|
|
bb5: ; preds = %bb5, %bb3
|
|
%tmp6 = load ptr, ptr %tmp4, align 8
|
|
%tmp7 = call fastcc i1 @widget(ptr %tmp6)
|
|
br label %bb5
|
|
}
|
|
|
|
define amdgpu_kernel void @entry() {
|
|
; CHECK-LABEL: define {{[^@]+}}@entry() {
|
|
; CHECK-NEXT: [[ALLOCA:%.*]] = alloca [[TMP0:%.*]], align 8, addrspace(5)
|
|
; CHECK-NEXT: [[CAST:%.*]] = addrspacecast ptr addrspace(5) [[ALLOCA]] to ptr
|
|
; CHECK-NEXT: [[ARST:%.*]] = call double @baz(ptr [[CAST]])
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%alloca = alloca %0, align 8, addrspace(5)
|
|
%cast = addrspacecast ptr addrspace(5) %alloca to ptr
|
|
%arst = call double @baz(ptr %cast)
|
|
ret void
|
|
}
|