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
55 lines
2.1 KiB
LLVM
55 lines
2.1 KiB
LLVM
;; Tests for basic block sections applied on a function in a custom section.
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -basic-block-sections=all | FileCheck %s
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=all | FileCheck %s
|
|
; RUN: echo "!_Z3fooi" > %t1.list.txt
|
|
; RUN: echo "!!2" >> %t1.list.txt
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -basic-block-sections=%t1.list.txt | FileCheck %s --check-prefix=LIST1
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t1.list.txt | FileCheck %s --check-prefix=LIST1
|
|
; RUN: echo "!_Z3fooi" > %t2.list.txt
|
|
; RUN: echo "!!0" >> %t2.list.txt
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -basic-block-sections=%t2.list.txt | FileCheck %s --check-prefix=LIST2
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t2.list.txt | FileCheck %s --check-prefix=LIST2
|
|
|
|
|
|
; CHECK: .section foo_section,"ax",@progbits,unique,1
|
|
; CHECK-LABEL: _Z3fooi:
|
|
; CHECK: .section foo_section,"ax",@progbits,unique,2
|
|
; CHECK-NEXT: _Z3fooi.__part.1:
|
|
; CHECK: .section foo_section,"ax",@progbits,unique,3
|
|
; CHECK-NEXT: _Z3fooi.__part.2:
|
|
|
|
; LIST1: .section foo_section,"ax",@progbits,unique,1
|
|
; LIST1-LABEL: _Z3fooi:
|
|
; LIST1: .section foo_section,"ax",@progbits,unique,2
|
|
; LIST1-NEXT: _Z3fooi.__part.0:
|
|
; LIST1-NOT: .section foo_section,"ax",@progbits,unique,3
|
|
|
|
; LIST2: .section foo_section,"ax",@progbits,unique,1
|
|
; LIST2-LABEL: _Z3fooi:
|
|
; LIST2: .section foo_section,"ax",@progbits,unique,2
|
|
; LIST2-NEXT: _Z3fooi.cold:
|
|
; LIST2-NOT: .section foo_section,"ax",@progbits,unique,3
|
|
|
|
;; Source to generate the IR:
|
|
;; #pragma clang section text = "foo_section"
|
|
;; int foo(int n) {
|
|
;; if (n < 0)
|
|
;; exit(-1);
|
|
;; return 0;
|
|
;; }
|
|
|
|
define dso_local i32 @_Z3fooi(i32 %n) local_unnamed_addr section "foo_section" {
|
|
entry:
|
|
%cmp = icmp slt i32 %n, 0
|
|
br i1 %cmp, label %if.then, label %if.end
|
|
|
|
if.then: ; preds = %entry
|
|
tail call void @exit(i32 -1) #2
|
|
unreachable
|
|
|
|
if.end: ; preds = %entry
|
|
ret i32 0
|
|
}
|
|
|
|
declare dso_local void @exit(i32) local_unnamed_addr
|