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
92 lines
2.8 KiB
Plaintext
92 lines
2.8 KiB
Plaintext
# REQUIRES: aarch64-registered-target
|
|
# UNSUPPORTED: system-windows
|
|
|
|
# Merge two object files having cgdata (__llvm_outline)
|
|
|
|
RUN: split-file %s %t
|
|
|
|
# Synthesize raw cgdata without the header (32 byte) from the indexed cgdata.
|
|
RUN: llvm-cgdata --convert --format binary %t/raw-1.cgtext -o %t/raw-1.cgdata
|
|
RUN: echo -n "s/<RAW_1_BYTES>/" > %t/raw-1-sed.txt
|
|
RUN: od -t x1 -j 32 -An %t/raw-1.cgdata | tr -d '\n\r\t' | sed 's/[ ]*$//' | sed 's/[ ][ ]*/\\\\/g' >> %t/raw-1-sed.txt
|
|
RUN: echo "/g" >> %t/raw-1-sed.txt
|
|
RUN: sed -f %t/raw-1-sed.txt %t/merge-1-template.ll > %t/merge-1.ll
|
|
RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-1.ll -o %t/merge-1.o
|
|
|
|
# Synthesize raw cgdata without the header (32 byte) from the indexed cgdata.
|
|
RUN: llvm-cgdata --convert --format binary %t/raw-2.cgtext -o %t/raw-2.cgdata
|
|
RUN: echo -n "s/<RAW_2_BYTES>/" > %t/raw-2-sed.txt
|
|
RUN: od -t x1 -j 32 -An %t/raw-2.cgdata | tr -d '\n\r\t' | sed 's/[ ]*$//' | sed 's/[ ][ ]*/\\\\/g' >> %t/raw-2-sed.txt
|
|
RUN: echo "/g" >> %t/raw-2-sed.txt
|
|
RUN: sed -f %t/raw-2-sed.txt %t/merge-2-template.ll > %t/merge-2.ll
|
|
RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-2.ll -o %t/merge-2.o
|
|
|
|
# Merge two object files into the codegen data file.
|
|
RUN: llvm-cgdata --merge %t/merge-1.o %t/merge-2.o -o %t/merge.cgdata
|
|
|
|
RUN: llvm-cgdata --show %t/merge.cgdata | FileCheck %s
|
|
CHECK: Outlined hash tree:
|
|
CHECK-NEXT: Total Node Count: 4
|
|
CHECK-NEXT: Terminal Node Count: 2
|
|
CHECK-NEXT: Depth: 2
|
|
|
|
RUN: llvm-cgdata --convert %t/merge.cgdata | FileCheck %s --check-prefix=TREE
|
|
TREE: # Outlined stable hash tree
|
|
TREE-NEXT: :outlined_hash_tree
|
|
TREE-NEXT: ---
|
|
TREE-NEXT: 0:
|
|
TREE-NEXT: Hash: 0x0
|
|
TREE-NEXT: Terminals: 0
|
|
TREE-NEXT: SuccessorIds: [ 1 ]
|
|
TREE-NEXT: 1:
|
|
TREE-NEXT: Hash: 0x1
|
|
TREE-NEXT: Terminals: 0
|
|
TREE-NEXT: SuccessorIds: [ 2, 3 ]
|
|
TREE-NEXT: 2:
|
|
TREE-NEXT: Hash: 0x3
|
|
TREE-NEXT: Terminals: 5
|
|
TREE-NEXT: SuccessorIds: [ ]
|
|
TREE-NEXT: 3:
|
|
TREE-NEXT: Hash: 0x2
|
|
TREE-NEXT: Terminals: 4
|
|
TREE-NEXT: SuccessorIds: [ ]
|
|
TREE-NEXT: ...
|
|
|
|
;--- raw-1.cgtext
|
|
:outlined_hash_tree
|
|
0:
|
|
Hash: 0x0
|
|
Terminals: 0
|
|
SuccessorIds: [ 1 ]
|
|
1:
|
|
Hash: 0x1
|
|
Terminals: 0
|
|
SuccessorIds: [ 2 ]
|
|
2:
|
|
Hash: 0x2
|
|
Terminals: 4
|
|
SuccessorIds: [ ]
|
|
...
|
|
|
|
;--- merge-1-template.ll
|
|
@.data = private unnamed_addr constant [72 x i8] c"<RAW_1_BYTES>", section "__DATA,__llvm_outline"
|
|
|
|
;--- raw-2.cgtext
|
|
:outlined_hash_tree
|
|
0:
|
|
Hash: 0x0
|
|
Terminals: 0
|
|
SuccessorIds: [ 1 ]
|
|
1:
|
|
Hash: 0x1
|
|
Terminals: 0
|
|
SuccessorIds: [ 2 ]
|
|
2:
|
|
Hash: 0x3
|
|
Terminals: 5
|
|
SuccessorIds: [ ]
|
|
...
|
|
|
|
;--- merge-2-template.ll
|
|
@.data = private unnamed_addr constant [72 x i8] c"<RAW_2_BYTES>", section "__DATA,__llvm_outline"
|