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
53 lines
1.4 KiB
LLVM
53 lines
1.4 KiB
LLVM
; RUN: llc -mtriple x86_64-unknown-windows-msvc %s -o - | FileCheck %s
|
|
|
|
declare swifttailcc void @callee()
|
|
|
|
define swifttailcc void @swift_tail() {
|
|
call void asm "","~{r14}"()
|
|
tail call swifttailcc void @callee()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: swift_tail:
|
|
; CHECK-NOT: popq %r14
|
|
|
|
define void @has_swift_async(ptr swiftasync %contet) {
|
|
call void asm "","~{r14}"()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: has_swift_async:
|
|
; CHECK: popq %r14
|
|
|
|
; It's impossible to get a tail call from a function without a swiftasync
|
|
; parameter to one with unless the CC is swifttailcc. So it doesn't matter
|
|
; whether r14 is callee-saved in this case.
|
|
define void @calls_swift_async() {
|
|
call void asm "","~{r14}"()
|
|
tail call void @has_swift_async(ptr swiftasync null)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: calls_swift_async:
|
|
; CHECK-NOT: jmpq has_swift_async
|
|
|
|
define swifttailcc void @no_preserve_swiftself() {
|
|
call void asm "","~{r13}"()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: no_preserve_swiftself:
|
|
; CHECK-NOT: popq %r13
|
|
|
|
declare swifttailcc ptr @swift_self(ptr swiftasync %context, ptr swiftself %self)
|
|
|
|
define swiftcc ptr @call_swift_self(ptr swiftself %self, ptr %context) {
|
|
; call void asm "","~{r13}"()
|
|
; We get a push r13 but why not with the call below?
|
|
%res = call swifttailcc ptr @swift_self(ptr swiftasync %context, ptr swiftself %self)
|
|
ret ptr %res
|
|
}
|
|
|
|
; CHECK-LABEL: call_swift_self:
|
|
; CHECK: pushq %r13
|