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
101 lines
2.7 KiB
LLVM
101 lines
2.7 KiB
LLVM
; RUN: llc -verify-machineinstrs -mtriple=aarch64-pc-windows-msvc < %s \
|
|
; RUN: | FileCheck --check-prefix=CHECK %s
|
|
|
|
; Loosely based on IR for this C++ source code:
|
|
; void f(int p);
|
|
; void try_in_catch() {
|
|
; try {
|
|
; f(1);
|
|
; } catch (...) {
|
|
; try {
|
|
; f(2);
|
|
; } catch (...) {
|
|
; f(3);
|
|
; }
|
|
; }
|
|
; }
|
|
|
|
declare void @f(i32 %p)
|
|
declare i32 @__CxxFrameHandler3(...)
|
|
|
|
define i32 @try_in_catch() personality ptr @__CxxFrameHandler3 {
|
|
entry:
|
|
invoke void @f(i32 1)
|
|
to label %try.cont unwind label %catch.dispatch.1
|
|
try.cont:
|
|
ret i32 0
|
|
|
|
catch.dispatch.1:
|
|
%cs1 = catchswitch within none [label %handler1] unwind to caller
|
|
handler1:
|
|
%h1 = catchpad within %cs1 [ptr null, i32 64, ptr null]
|
|
invoke void @f(i32 2) [ "funclet"(token %h1) ]
|
|
to label %catchret1 unwind label %catch.dispatch.2
|
|
catchret1:
|
|
catchret from %h1 to label %try.cont
|
|
|
|
catch.dispatch.2:
|
|
%cs2 = catchswitch within %h1 [label %handler2] unwind to caller
|
|
handler2:
|
|
%h2 = catchpad within %cs2 [ptr null, i32 64, ptr null]
|
|
call void @f(i32 3)
|
|
catchret from %h2 to label %catchret1
|
|
}
|
|
|
|
; CHECK-LABEL: $cppxdata$try_in_catch:
|
|
; CHECK-NEXT: .word 429065506
|
|
; CHECK-NEXT: .word 4
|
|
; CHECK-NEXT: .word $stateUnwindMap$try_in_catch
|
|
; CHECK-NEXT: .word 2
|
|
; CHECK-NEXT: .word $tryMap$try_in_catch
|
|
; ip2state num + ptr
|
|
; CHECK-NEXT: .word 7
|
|
; CHECK-NEXT: .word $ip2state$try_in_catch
|
|
; unwindhelp offset
|
|
; CHECK-NEXT: .word -16
|
|
; CHECK-NEXT: .word 0
|
|
; EHFlags
|
|
; CHECK-NEXT: .word 1
|
|
|
|
; CHECK-LABEL: $tryMap$try_in_catch:
|
|
; CHECK-NEXT: .word 0
|
|
; CHECK-NEXT: .word 0
|
|
; CHECK-NEXT: .word 3
|
|
; CHECK-NEXT: .word 1
|
|
; CHECK-NEXT: .word $handlerMap$0$try_in_catch
|
|
; CHECK-NEXT: .word 2
|
|
; CHECK-NEXT: .word 2
|
|
; CHECK-NEXT: .word 3
|
|
; CHECK-NEXT: .word 1
|
|
; CHECK-NEXT: .word $handlerMap$1$try_in_catch
|
|
|
|
; CHECK: $handlerMap$0$try_in_catch:
|
|
; CHECK-NEXT: .word 64
|
|
; CHECK-NEXT: .word 0
|
|
; CHECK-NEXT: .word 0
|
|
; CHECK-NEXT: .word "?catch${{[0-9]+}}@?0?try_in_catch@4HA"
|
|
; CHECK-NEXT: .word 0
|
|
|
|
; CHECK: $handlerMap$1$try_in_catch:
|
|
; CHECK-NEXT: .word 64
|
|
; CHECK-NEXT: .word 0
|
|
; CHECK-NEXT: .word 0
|
|
; CHECK-NEXT: .word "?catch${{[0-9]+}}@?0?try_in_catch@4HA"
|
|
; CHECK-NEXT: .word 0
|
|
|
|
; CHECK: $ip2state$try_in_catch:
|
|
; CHECK-NEXT: .word .Lfunc_begin0@IMGREL
|
|
; CHECK-NEXT: .word -1
|
|
; CHECK-NEXT: .word .Ltmp0@IMGREL
|
|
; CHECK-NEXT: .word 0
|
|
; CHECK-NEXT: .word .Ltmp1@IMGREL
|
|
; CHECK-NEXT: .word -1
|
|
; CHECK-NEXT: .word "?catch$2@?0?try_in_catch@4HA"@IMGREL
|
|
; CHECK-NEXT: .word 1
|
|
; CHECK-NEXT: .word .Ltmp2@IMGREL
|
|
; CHECK-NEXT: .word 2
|
|
; CHECK-NEXT: .word .Ltmp3@IMGREL
|
|
; CHECK-NEXT: .word 1
|
|
; CHECK-NEXT: .word "?catch$4@?0?try_in_catch@4HA"@IMGREL
|
|
; CHECK-NEXT: .word 3
|