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
52 lines
1.3 KiB
LLVM
52 lines
1.3 KiB
LLVM
; Check that DTLTO creates identical summary index shard files as are created
|
|
; for an equivalent ThinLTO link.
|
|
|
|
RUN: rm -rf %t && split-file %s %t && cd %t
|
|
|
|
; Generate ThinLTO bitcode files.
|
|
RUN: opt -thinlto-bc t1.ll -o t1.bc
|
|
RUN: opt -thinlto-bc t2.ll -o t2.bc
|
|
|
|
; Generate fake object files for mock.py to return.
|
|
RUN: touch t1.o t2.o
|
|
|
|
; Define a substitution to share the common arguments.
|
|
DEFINE: %{command} = llvm-lto2 run t1.bc t2.bc -o t.o \
|
|
DEFINE: -r=t1.bc,t1,px \
|
|
DEFINE: -r=t2.bc,t2,px \
|
|
DEFINE: -r=t2.bc,t1 \
|
|
DEFINE: -thinlto-emit-indexes
|
|
|
|
; Perform DTLTO.
|
|
RUN: %{command} \
|
|
RUN: -dtlto-distributor=%python \
|
|
RUN: -dtlto-distributor-arg=%llvm_src_root/utils/dtlto/mock.py,t1.o,t2.o
|
|
|
|
; Perform ThinLTO.
|
|
RUN: %{command}
|
|
|
|
; Check for equivalence. We use a wildcard to account for the PID.
|
|
RUN: cmp t1.1.*.native.o.thinlto.bc t1.bc.thinlto.bc
|
|
RUN: cmp t2.2.*.native.o.thinlto.bc t2.bc.thinlto.bc
|
|
|
|
;--- t1.ll
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @t1() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
;--- t2.ll
|
|
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"
|
|
|
|
declare void @t1(...)
|
|
|
|
define void @t2() {
|
|
entry:
|
|
call void (...) @t1()
|
|
ret void
|
|
}
|