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
87 lines
2.2 KiB
LLVM
87 lines
2.2 KiB
LLVM
; RUN: llvm-as %s -o %t.o
|
|
; RUN: llvm-as %p/Inputs/comdat.ll -o %t2.o
|
|
; RUN: llvm-lto2 run -save-temps -o %t3.o %t.o %t2.o \
|
|
; RUN: -r=%t.o,f1,plx \
|
|
; RUN: -r=%t.o,v1,px \
|
|
; RUN: -r=%t.o,r11,px \
|
|
; RUN: -r=%t.o,r12,px \
|
|
; RUN: -r=%t.o,a11,px \
|
|
; RUN: -r=%t.o,a12,px \
|
|
; RUN: -r=%t.o,a13,px \
|
|
; RUN: -r=%t.o,a14,px \
|
|
; RUN: -r=%t.o,a15,px \
|
|
; RUN: -r=%t2.o,f1,l \
|
|
; RUN: -r=%t2.o,will_be_undefined, \
|
|
; RUN: -r=%t2.o,v1, \
|
|
; RUN: -r=%t2.o,r21,px \
|
|
; RUN: -r=%t2.o,r22,px \
|
|
; RUN: -r=%t2.o,a21,px \
|
|
; RUN: -r=%t2.o,a22,px \
|
|
; RUN: -r=%t2.o,a23,px \
|
|
; RUN: -r=%t2.o,a24,px \
|
|
; RUN: -r=%t2.o,a25,px
|
|
; RUN: llvm-dis %t3.o.0.2.internalize.bc -o - | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
$c1 = comdat any
|
|
|
|
@v1 = weak_odr global i32 42, comdat($c1)
|
|
define weak_odr i32 @f1(ptr) comdat($c1) {
|
|
bb10:
|
|
br label %bb11
|
|
bb11:
|
|
ret i32 42
|
|
}
|
|
|
|
@r11 = global ptr @v1
|
|
@r12 = global ptr @f1
|
|
|
|
@a11 = alias i32, ptr @v1
|
|
@a12 = alias i16, ptr @v1
|
|
|
|
@a13 = alias i32 (ptr), ptr @f1
|
|
@a14 = alias i16, ptr @f1
|
|
@a15 = alias i16, ptr @a14
|
|
|
|
; CHECK: $c1 = comdat any
|
|
; CHECK: $c2 = comdat any
|
|
|
|
; CHECK-DAG: @v1 = weak_odr global i32 42, comdat($c1)
|
|
|
|
; CHECK-DAG: @r11 = global ptr @v1{{$}}
|
|
; CHECK-DAG: @r12 = global ptr @f1{{$}}
|
|
|
|
; CHECK-DAG: @r21 = global ptr @v1{{$}}
|
|
; CHECK-DAG: @r22 = global ptr @f1{{$}}
|
|
|
|
; CHECK-DAG: @v1.1 = internal global i32 41, comdat($c2)
|
|
|
|
; CHECK-DAG: @a11 = alias i32, ptr @v1{{$}}
|
|
; CHECK-DAG: @a12 = alias i16, ptr @v1{{$}}
|
|
|
|
; CHECK-DAG: @a13 = alias i32 (ptr), ptr @f1{{$}}
|
|
; CHECK-DAG: @a14 = alias i16, ptr @f1{{$}}
|
|
|
|
; CHECK-DAG: @a21 = alias i32, ptr @v1.1{{$}}
|
|
; CHECK-DAG: @a22 = alias i16, ptr @v1.1{{$}}
|
|
|
|
; CHECK-DAG: @a23 = alias i32 (ptr), ptr @f1.2{{$}}
|
|
; CHECK-DAG: @a24 = alias i16, ptr @f1.2{{$}}
|
|
|
|
; CHECK: define weak_odr dso_local i32 @f1(ptr %0) comdat($c1) {
|
|
; CHECK-NEXT: bb10:
|
|
; CHECK-NEXT: br label %bb11{{$}}
|
|
; CHECK: bb11:
|
|
; CHECK-NEXT: ret i32 42
|
|
; CHECK-NEXT: }
|
|
|
|
; CHECK: define internal i32 @f1.2(ptr %this) comdat($c2) {
|
|
; CHECK-NEXT: bb20:
|
|
; CHECK-NEXT: store ptr %this, ptr null
|
|
; CHECK-NEXT: br label %bb21
|
|
; CHECK: bb21:
|
|
; CHECK-NEXT: ret i32 41
|
|
; CHECK-NEXT: }
|