Skip to content

[SYCL] migrate sycl-module-split to llvm-split #14559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion llvm/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ set(LLVM_TEST_DEPENDS
sanstats
spirv-to-ir-wrapper
sycl-post-link
sycl-module-split
split-file
verify-uselistorder
yaml-bench
Expand Down
1 change: 0 additions & 1 deletion llvm/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def get_asan_rtlib():
"sanstats",
"llvm-remarkutil",
"spirv-to-ir-wrapper",
"sycl-module-split",
]
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefixes CHECK-TU0-TXT
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-TU1-TXT

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; By default auto mode is equal to source mode
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-TU0,CHECK
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-TU1,CHECK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefixes CHECK-TU0-TXT
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-TU1-TXT

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-TU0,CHECK
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-TU1,CHECK
; RUN: FileCheck %s -input-file=%t2_0.sym --check-prefixes CHECK-TU0-TXT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-TU1-SYM
;
;
; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
;
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-TU0-IR \
; RUN: --implicit-check-not TU0_kernel --implicit-check-not _Z3foov \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefix=CHECK-IR0
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefix=CHECK-IR1

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.sym --check-prefix=CHECK-SYM0
; RUN: FileCheck %s -input-file=%t2_1.sym --check-prefix=CHECK-SYM1
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefix=CHECK-IR0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefixes CHECK-TU0-TXT
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-TU1-TXT

; RUN: sycl-module-split -split=source -S < %s -o %t2
; RUN: llvm-split -sycl-split=source -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-TU0,CHECK
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-TU1,CHECK
; RUN: FileCheck %s -input-file=%t2_0.sym --check-prefixes CHECK-TU0-TXT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
; RUN: --implicit-check-not @BAZ --implicit-check-not @kernel_B \
; RUN: --implicit-check-not @kernel_C
;
; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefix CHECK0 \
; RUN: --implicit-check-not @foo --implicit-check-not @kernel_A \
; RUN: --implicit-check-not @kernel_B --implicit-check-not @baz
Expand All @@ -34,7 +34,7 @@
; RUN: --implicit-check-not @BAZ --implicit-check-not @kernel_B \
; RUN: --implicit-check-not @kernel_C
;
; RUN: sycl-module-split -split=source -S < %s -o %t2
; RUN: llvm-split -sycl-split=source -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefix CHECK0 \
; RUN: --implicit-check-not @foo --implicit-check-not @kernel_A \
; RUN: --implicit-check-not @kernel_B --implicit-check-not @baz
Expand All @@ -56,7 +56,7 @@
; RUN: --implicit-check-not @BAZ --implicit-check-not @kernel_B \
; RUN: --implicit-check-not @kernel_C
;
; RUN: sycl-module-split -split=kernel -S < %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefix CHECK0 \
; RUN: --implicit-check-not @foo --implicit-check-not @kernel_A \
; RUN: --implicit-check-not @kernel_B --implicit-check-not @baz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
; RUN: FileCheck %s -input-file=%t.files_2.ll --check-prefixes CHECK-MODULE2,CHECK
; RUN: FileCheck %s -input-file=%t.files_2.sym --check-prefixes CHECK-MODULE2-TXT
;
; RUN: sycl-module-split -split=kernel -S < %s -o %t2.files
; RUN: llvm-split -sycl-split=kernel -S < %s -o %t2.files
; RUN: FileCheck %s -input-file=%t2.files_0.ll --check-prefixes CHECK-MODULE0,CHECK
; RUN: FileCheck %s -input-file=%t2.files_0.sym --check-prefixes CHECK-MODULE0-TXT
; RUN: FileCheck %s -input-file=%t2.files_1.ll --check-prefixes CHECK-MODULE1,CHECK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down Expand Up @@ -49,7 +49,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1

; RUN: sycl-module-split -split=source -S < %s -o %t2
; RUN: llvm-split -sycl-split=source -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down Expand Up @@ -77,7 +77,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1

; RUN: sycl-module-split -split=kernel -S < %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefix CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel3

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2.table --check-prefix CHECK-TABLE
;
; RUN: FileCheck %s -input-file=%t2_0.sym --check-prefix CHECK-M0-SYMS \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefix CHECK-M1-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not bar

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2.table --check-prefix CHECK-TABLE
;
; RUN: FileCheck %s -input-file=%t2_0.sym --check-prefix CHECK-M0-SYMS \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K2 \
; RUN: --implicit-check-not Kernel3

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K2 \
Expand All @@ -35,7 +35,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K2 \
; RUN: --implicit-check-not Kernel3

; RUN: sycl-module-split -split=source -S %s -o %t2
; RUN: llvm-split -sycl-split=source -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K2 \
Expand All @@ -59,7 +59,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-SYMS-K1 \
; RUN: --implicit-check-not Kernel3 --implicit-check-not Kernel2

; RUN: sycl-module-split -split=kernel -S %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K2 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K3 \
; RUN: --implicit-check-not Kernel2

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K2 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel3
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K3 \
Expand All @@ -36,7 +36,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K3 \
; RUN: --implicit-check-not Kernel2

; RUN: sycl-module-split -split=source -S %s -o %t2
; RUN: llvm-split -sycl-split=source -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K2 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel3
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K3 \
Expand All @@ -60,7 +60,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-SYMS-K1 \
; RUN: --implicit-check-not Kernel2 --implicit-check-not Kernel3

; RUN: sycl-module-split -split=kernel -S %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K2 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K2 \
; RUN: --implicit-check-not Kernel3

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K2 \
Expand All @@ -35,7 +35,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K2 \
; RUN: --implicit-check-not Kernel3

; RUN: sycl-module-split -split=source -S %s -o %t2
; RUN: llvm-split -sycl-split=source -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K2 \
Expand All @@ -59,7 +59,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-SYMS-K1 \
; RUN: --implicit-check-not Kernel3 --implicit-check-not Kernel2

; RUN: sycl-module-split -split=kernel -S %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K2 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K3 \
; RUN: --implicit-check-not Kernel2

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K2 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel3
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K3 \
Expand All @@ -36,7 +36,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K3 \
; RUN: --implicit-check-not Kernel2

; RUN: sycl-module-split -split=source -S %s -o %t2
; RUN: llvm-split -sycl-split=source -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K2 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel3
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K3 \
Expand All @@ -60,7 +60,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-SYMS-K1 \
; RUN: --implicit-check-not Kernel2 --implicit-check-not Kernel3

; RUN: sycl-module-split -split=kernel -S %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K2 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K2 \
; RUN: --implicit-check-not Kernel3

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K2 \
Expand All @@ -36,7 +36,7 @@
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYMS-K1,CHECK-SYMS-K2 \
; RUN: --implicit-check-not Kernel3

; RUN: sycl-module-split -split=source -S %s -o %t2
; RUN: llvm-split -sycl-split=source -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K1,CHECK-IR-K2 \
Expand All @@ -60,7 +60,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-SYMS-K1 \
; RUN: --implicit-check-not Kernel3 --implicit-check-not Kernel2

; RUN: sycl-module-split -split=kernel -S %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-IR-K2 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2 \
; RUN: --implicit-check-not Kernel3 --implicit-check-not Kernel5 --implicit-check-not Kernel6

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3,CHECK-IR-K5 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2 \
; RUN: --implicit-check-not Kernel4 --implicit-check-not Kernel6
Expand Down Expand Up @@ -85,7 +85,7 @@
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2 \
; RUN: --implicit-check-not Kernel3 --implicit-check-not Kernel5 --implicit-check-not Kernel6

; RUN: sycl-module-split -split=source -S %s -o %t2
; RUN: llvm-split -sycl-split=source -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K3,CHECK-IR-K5 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2 \
; RUN: --implicit-check-not Kernel4 --implicit-check-not Kernel6
Expand Down Expand Up @@ -149,7 +149,7 @@
; RUN: --implicit-check-not Kernel12 --implicit-check-not Kernel3 \
; RUN: --implicit-check-not Kernel4 --implicit-check-not Kernel5 --implicit-check-not Kernel6

; RUN: sycl-module-split -split=kernel -S %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-IR-K6 \
; RUN: --implicit-check-not Kernel1 --implicit-check-not Kernel2 \
; RUN: --implicit-check-not Kernel3 --implicit-check-not Kernel4 --implicit-check-not Kernel5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down Expand Up @@ -49,7 +49,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2

; RUN: sycl-module-split -split=kernel -S %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down Expand Up @@ -77,7 +77,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2

; RUN: sycl-module-split -split=source -S %s -o %t2
; RUN: llvm-split -sycl-split=source -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1 \
; RUN: --implicit-check-not kernel2

; RUN: sycl-module-split -split=auto -S %s -o %t2
; RUN: llvm-split -sycl-split=auto -S %s -o %t2
; RUN: FileCheck %s -input-file=%t2.table --check-prefix CHECK-TABLE
;
; RUN: FileCheck %s -input-file=%t2_0.sym --check-prefix CHECK-M0-SYMS \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down Expand Up @@ -49,7 +49,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2

; RUN: sycl-module-split -split=source -S < %s -o %t2
; RUN: llvm-split -sycl-split=source -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down Expand Up @@ -77,7 +77,7 @@
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2

; RUN: sycl-module-split -split=kernel -S < %s -o %t2
; RUN: llvm-split -sycl-split=kernel -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2_0.ll --check-prefixes CHECK-M0-IR \
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
; RUN: FileCheck %s -input-file=%t2_1.ll --check-prefixes CHECK-M1-IR \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2 \
; RUN: --implicit-check-not kernel0

; RUN: sycl-module-split -split=auto -S < %s -o %t2
; RUN: llvm-split -sycl-split=auto -S < %s -o %t2
; RUN: FileCheck %s -input-file=%t2.table --check-prefix CHECK-TABLE
;
; RUN: FileCheck %s -input-file=%t2_0.sym --check-prefix CHECK-M0-SYMS \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefix CHECK-PER-SOURCE-SYM0
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefix CHECK-PER-SOURCE-SYM1
;
; RUN: sycl-module-split -split=source -S < %s -o %t1
; RUN: llvm-split -sycl-split=source -S < %s -o %t1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sycl-post-link tests should not call sycl-module-split or llvm-split tools. This is very confusing.
@maksimsab, please, file an issue to refactor these tests.

Also, it's not clear why do we test pass functionality twice using different executables. Can we run just one tool to validate split logic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration of functionality of sycl-post-link to library hasn't been completed yet. For example, ESIMD splitting is going to be moved to the library during this sprint.
During the migration we keep testing of sycl-post-link since it is used in the default pipeline and we keep the testing of the library to be sure that there are no bugs.
In the end of the migration the library will be invoked from clang-linker-wrapper and sycl-post-link will be removed and these tests will move to the right directory. These tests weren't duplicated because it is easy to make a mistake when someone modifies one test and they forget to modify the equivalent duplicated test.

Proposed testing approach with llvm-split is the same as one that was used for AMD in llvm/llvm-project#89245 .

; RUN: FileCheck %s -input-file=%t1.table --check-prefix CHECK-PER-SOURCE-TABLE
; RUN: FileCheck %s -input-file=%t1_0.sym --check-prefix CHECK-PER-SOURCE-SYM0
; RUN: FileCheck %s -input-file=%t1_1.sym --check-prefix CHECK-PER-SOURCE-SYM1
Expand All @@ -17,7 +17,7 @@
; RUN: FileCheck %s -input-file=%t2_1.sym --check-prefix CHECK-PER-KERNEL-SYM2
; RUN: FileCheck %s -input-file=%t2_2.sym --check-prefix CHECK-PER-KERNEL-SYM0
;
; RUN: sycl-module-split -split=kernel -S < %s -o %t3
; RUN: llvm-split -sycl-split=kernel -S < %s -o %t3
; RUN: FileCheck %s -input-file=%t3.table --check-prefix CHECK-PER-KERNEL-TABLE
; RUN: FileCheck %s -input-file=%t3_0.sym --check-prefix CHECK-PER-KERNEL-SYM1
; RUN: FileCheck %s -input-file=%t3_1.sym --check-prefix CHECK-PER-KERNEL-SYM2
Expand Down
Loading
Loading