Files
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

74 lines
2.5 KiB
LLVM

; RUN: opt -S %s -passes=verify
declare token @llvm.call.preallocated.setup(i32)
declare ptr @llvm.call.preallocated.arg(token, i32)
declare void @llvm.call.preallocated.teardown(token)
declare i32 @__CxxFrameHandler3(...)
declare void @foo1(ptr preallocated(i32))
declare i64 @foo1_i64(ptr preallocated(i32))
declare void @foo2(ptr preallocated(i32), ptr, ptr preallocated(i32))
declare void @constructor(ptr)
define void @preallocated() {
%cs = call token @llvm.call.preallocated.setup(i32 1)
%x = call ptr @llvm.call.preallocated.arg(token %cs, i32 0) preallocated(i32)
call void @foo1(ptr preallocated(i32) %x) ["preallocated"(token %cs)]
ret void
}
define void @preallocated_indirect(ptr %f) {
%cs = call token @llvm.call.preallocated.setup(i32 1)
%x = call ptr @llvm.call.preallocated.arg(token %cs, i32 0) preallocated(i32)
call void %f(ptr preallocated(i32) %x) ["preallocated"(token %cs)]
ret void
}
define void @preallocated_setup_without_call() {
%cs = call token @llvm.call.preallocated.setup(i32 1)
%a0 = call ptr @llvm.call.preallocated.arg(token %cs, i32 0) preallocated(i32)
ret void
}
define void @preallocated_num_args() {
%cs = call token @llvm.call.preallocated.setup(i32 2)
%x = call ptr @llvm.call.preallocated.arg(token %cs, i32 0) preallocated(i32)
%y = call ptr @llvm.call.preallocated.arg(token %cs, i32 1) preallocated(i32)
%a = inttoptr i32 0 to ptr
call void @foo2(ptr preallocated(i32) %x, ptr %a, ptr preallocated(i32) %y) ["preallocated"(token %cs)]
ret void
}
define void @preallocated_musttail(ptr preallocated(i32) %a) {
musttail call void @foo1(ptr preallocated(i32) %a)
ret void
}
define i64 @preallocated_musttail_i64(ptr preallocated(i32) %a) {
%r = musttail call i64 @foo1_i64(ptr preallocated(i32) %a)
ret i64 %r
}
define void @preallocated_teardown() {
%cs = call token @llvm.call.preallocated.setup(i32 1)
call void @llvm.call.preallocated.teardown(token %cs)
ret void
}
define void @preallocated_teardown_invoke() personality ptr @__CxxFrameHandler3 {
%cs = call token @llvm.call.preallocated.setup(i32 1)
%x = call ptr @llvm.call.preallocated.arg(token %cs, i32 0) preallocated(i32)
invoke void @constructor(ptr %x) to label %conta unwind label %contb
conta:
call void @foo1(ptr preallocated(i32) %x) ["preallocated"(token %cs)]
ret void
contb:
%s = catchswitch within none [label %catch] unwind to caller
catch:
%p = catchpad within %s []
call void @llvm.call.preallocated.teardown(token %cs)
ret void
}