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
58 lines
1.5 KiB
LLVM
58 lines
1.5 KiB
LLVM
; RUN: rm -rf %t && split-file %s %t
|
|
; RUN: llvm-link %t/1.ll -S -o - | FileCheck %s --check-prefix=CHECK1
|
|
;; The source doesn't have comdat.
|
|
; RUN: llvm-link %t/2.ll -S -o - | FileCheck %s --check-prefix=CHECK2
|
|
|
|
;; The leader is an alias.
|
|
; RUN: llvm-link %t/3.ll %t/3-aux.ll -S -o - | FileCheck %s
|
|
; RUN: llvm-link %t/3-aux.ll %t/3.ll -S -o - | FileCheck %s
|
|
|
|
;--- 1.ll
|
|
$c = comdat any
|
|
@a = alias void (), ptr @f
|
|
define internal void @f() comdat($c) {
|
|
ret void
|
|
}
|
|
|
|
; CHECK1-DAG: $c = comdat any
|
|
; CHECK1-DAG: @a = alias void (), ptr @f
|
|
; CHECK1-DAG: define internal void @f() comdat($c)
|
|
|
|
$f2 = comdat largest
|
|
define linkonce_odr void @f2() comdat($f2) {
|
|
ret void
|
|
}
|
|
define void @f3() comdat($f2) {
|
|
ret void
|
|
}
|
|
|
|
; CHECK1-DAG: $f2 = comdat largest
|
|
; CHECK1-DAG: define linkonce_odr void @f2()
|
|
|
|
;--- 2.ll
|
|
$c = comdat largest
|
|
|
|
; CHECK2: @c = global i32 0, comdat
|
|
@c = global i32 0, comdat
|
|
|
|
;--- 3.ll
|
|
target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
|
|
|
|
$foo = comdat largest
|
|
@foo = linkonce_odr unnamed_addr constant [1 x ptr] [ptr @bar], comdat($foo)
|
|
|
|
; CHECK: @foo = alias ptr, getelementptr ([2 x ptr], ptr @some_name, i32 0, i32 1)
|
|
|
|
declare void @bar() unnamed_addr
|
|
|
|
;--- 3-aux.ll
|
|
target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
|
|
|
|
$foo = comdat largest
|
|
|
|
@zed = external constant i8
|
|
@some_name = private unnamed_addr constant [2 x ptr] [ptr @zed, ptr @bar], comdat($foo)
|
|
@foo = alias ptr, getelementptr([2 x ptr], ptr @some_name, i32 0, i32 1)
|
|
|
|
declare void @bar() unnamed_addr
|