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
118 lines
3.2 KiB
LLVM
118 lines
3.2 KiB
LLVM
; RUN: llc -verify-machineinstrs -mtriple=i686-pc-windows-msvc < %s \
|
|
; RUN: | FileCheck --check-prefix=CHECK --check-prefix=X86 %s
|
|
; RUN: llc -verify-machineinstrs -mtriple=x86_64-pc-windows-msvc < %s \
|
|
; RUN: | FileCheck --check-prefix=CHECK --check-prefix=X64 %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
|
|
}
|
|
|
|
; X86-LABEL: L__ehtable$try_in_catch:
|
|
; X64-LABEL: $cppxdata$try_in_catch:
|
|
; CHECK-NEXT: .long 429065506
|
|
; CHECK-NEXT: .long 4
|
|
; CHECK-NEXT: .long $stateUnwindMap$try_in_catch
|
|
; CHECK-NEXT: .long 2
|
|
; CHECK-NEXT: .long $tryMap$try_in_catch
|
|
; ip2state num + ptr
|
|
; X86-NEXT: .long 0
|
|
; X86-NEXT: .long 0
|
|
; X64-NEXT: .long 7
|
|
; X64-NEXT: .long $ip2state$try_in_catch
|
|
; unwindhelp offset
|
|
; X64-NEXT: .long 40
|
|
; CHECK-NEXT: .long 0
|
|
; EHFlags
|
|
; CHECK-NEXT: .long 1
|
|
|
|
; X86-LABEL: $tryMap$try_in_catch:
|
|
; X86-NEXT: .long 2
|
|
; X86-NEXT: .long 2
|
|
; X86-NEXT: .long 3
|
|
; X86-NEXT: .long 1
|
|
; X86-NEXT: .long $handlerMap$0$try_in_catch
|
|
; X86-NEXT: .long 0
|
|
; X86-NEXT: .long 0
|
|
; X86-NEXT: .long 3
|
|
; X86-NEXT: .long 1
|
|
; X86-NEXT: .long $handlerMap$1$try_in_catch
|
|
|
|
; X64-LABEL: $tryMap$try_in_catch:
|
|
; X64-NEXT: .long 0
|
|
; X64-NEXT: .long 0
|
|
; X64-NEXT: .long 3
|
|
; X64-NEXT: .long 1
|
|
; X64-NEXT: .long $handlerMap$0$try_in_catch
|
|
; X64-NEXT: .long 2
|
|
; X64-NEXT: .long 2
|
|
; X64-NEXT: .long 3
|
|
; X64-NEXT: .long 1
|
|
; X64-NEXT: .long $handlerMap$1$try_in_catch
|
|
|
|
; CHECK: $handlerMap$0$try_in_catch:
|
|
; CHECK-NEXT: .long 64
|
|
; CHECK-NEXT: .long 0
|
|
; CHECK-NEXT: .long 0
|
|
; CHECK-NEXT: .long "?catch${{[0-9]+}}@?0?try_in_catch@4HA"
|
|
; X64-NEXT: .long 56
|
|
|
|
; CHECK: $handlerMap$1$try_in_catch:
|
|
; CHECK-NEXT: .long 64
|
|
; CHECK-NEXT: .long 0
|
|
; CHECK-NEXT: .long 0
|
|
; CHECK-NEXT: .long "?catch${{[0-9]+}}@?0?try_in_catch@4HA"
|
|
; X64-NEXT: .long 56
|
|
|
|
; X64: $ip2state$try_in_catch:
|
|
; X64-NEXT: .long .Lfunc_begin0@IMGREL
|
|
; X64-NEXT: .long -1
|
|
; X64-NEXT: .long .Ltmp0@IMGREL
|
|
; X64-NEXT: .long 0
|
|
; X64-NEXT: .long .Ltmp1@IMGREL
|
|
; X64-NEXT: .long -1
|
|
; X64-NEXT: .long "?catch$2@?0?try_in_catch@4HA"@IMGREL
|
|
; X64-NEXT: .long 1
|
|
; X64-NEXT: .long .Ltmp2@IMGREL
|
|
; X64-NEXT: .long 2
|
|
; X64-NEXT: .long .Ltmp3@IMGREL
|
|
; X64-NEXT: .long 1
|
|
; X64-NEXT: .long "?catch$4@?0?try_in_catch@4HA"@IMGREL
|
|
; X64-NEXT: .long 3
|