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
89 lines
2.9 KiB
LLVM
89 lines
2.9 KiB
LLVM
; BB cluster section test for exception handling.
|
|
;
|
|
; Test1: Basic blocks #1 and #3 are landing pads and must be in the same section.
|
|
; Basic block 2 will be placed in a unique section, but #1 and #3 are placed in the special exception section.
|
|
; The rest will be placed in a section along with the entry basic block.
|
|
; RUN: echo '!main' > %t1
|
|
; RUN: echo '!!1 2' >> %t1
|
|
; RUN: llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t1 | FileCheck %s -check-prefix=LINUX-SECTIONS1
|
|
;
|
|
; Test2: Basic blocks #1, #2, and #3 go into a separate section.
|
|
; No separate exception section will be created as #1 and #3 are already in one section.
|
|
; The rest will be placed in a section along with the entry basic block.
|
|
; RUN: echo '!main' > %t2
|
|
; RUN: echo '!!1 2 3' >> %t2
|
|
; RUN: llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t2 | FileCheck %s -check-prefix=LINUX-SECTIONS2
|
|
|
|
@_ZTIi = external constant ptr
|
|
|
|
define i32 @main() uwtable optsize ssp personality ptr @__gxx_personality_v0 {
|
|
entry:
|
|
invoke void @_Z1fv() optsize
|
|
to label %try.cont unwind label %lpad1
|
|
|
|
lpad1:
|
|
%0 = landingpad { ptr, i32 }
|
|
cleanup
|
|
catch ptr @_ZTIi
|
|
br label %eh.resume1
|
|
|
|
try.cont:
|
|
invoke void @_Z2fv() optsize
|
|
to label %try.cont unwind label %lpad2
|
|
ret i32 0
|
|
|
|
lpad2:
|
|
%2 = landingpad { ptr, i32 }
|
|
cleanup
|
|
catch ptr @_ZTIi
|
|
br label %eh.resume2
|
|
|
|
eh.resume1:
|
|
resume { ptr, i32 } %0
|
|
|
|
eh.resume2:
|
|
resume { ptr, i32 } %2
|
|
}
|
|
|
|
declare void @_Z1fv() optsize
|
|
|
|
declare void @_Z2fv() optsize
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|
|
|
|
; LINUX-SECTIONS1: .section .text.main,"ax",@progbits
|
|
; LINUX-SECTIONS1-LABEL: main:
|
|
; LINUX-SECTIONS1-NOT: .section
|
|
; LINUX-SECTIONS1-LABEL: .LBB0_4:
|
|
; LINUX-SECTIONS1-NOT: .section
|
|
; LINUX-SECTIONS1-LABEL: .LBB0_5:
|
|
; LINUX-SECTIONS1-NOT: .section
|
|
; LINUX-SECTIONS1-LABEL: .LBB0_6:
|
|
; LINUX-SECTIONS1: .section .text.main,"ax",@progbits,unique,1
|
|
; LINUX-SECTIONS1-LABEL: main.__part.0:
|
|
; LINUX-SECTIONS1: .section .text.eh.main,"ax",@progbits
|
|
; LINUX-SECTIONS1-LABEL: main.eh:
|
|
; LINUX-SECTIONS1-NOT: .section
|
|
; LINUX-SECTIONS1-LABEL: .LBB0_3:
|
|
; LINUX-SECTIONS1-NOT: .section
|
|
; LINUX-SECTIONS1: .section .text.main,"ax",@progbits
|
|
; LINUX-SECTIONS1-LABEL: .Lfunc_end0
|
|
|
|
|
|
; LINUX-SECTIONS2: .section .text.main,"ax",@progbits
|
|
; LINUX-SECTIONS2-LABEL: main:
|
|
; LINUX-SECTIONS2-NOT: .section
|
|
; LINUX-SECTIONS2-LABEL: .LBB0_4:
|
|
; LINUX-SECTIONS2-NOT: .section
|
|
; LINUX-SECTIONS2-LABEL: .LBB0_5:
|
|
; LINUX-SECTIONS2-NOT: .section
|
|
; LINUX-SECTIONS2-LABEL: .LBB0_6:
|
|
; LINUX-SECTIONS2: .section .text.main,"ax",@progbits,unique,1
|
|
; LINUX-SECTIONS2-LABEL: main.__part.0:
|
|
; LINUX-SECTIONS2-NOT: .section
|
|
; LINUX-SECTIONS2-LABEL: .LBB0_2:
|
|
; LINUX-SECTIONS2-NOT: .section
|
|
; LINUX-SECTIONS2-LABEL: .LBB0_3:
|
|
; LINUX-SECTIONS2: .section .text.main,"ax",@progbits
|
|
; LINUX-SECTIONS2-LABEL: .Lfunc_end0
|