Skip to content

Commit a607805

Browse files
[SYCL][sycl-post-link][LIT] Use redirection instead of direct filenames (#8617)
Best practice in lit tests is to redirect the test file to tools operating on it via stdin instead of passing the file name directly to the tool. This is because LLVM tools often print the name of the input file in their output, and if the person running the tests is unlucky enough that the path to where they checked out the tests has the wrong substrings in it, they can see spurious lit test failures like these: ``` command line:1:22: error: CHECK-M1-IR-NOT: excluded string found in input -implicit-check-not='bar' ^ /localdisk2/dwoodwor/intel-llvm-kernel1-bar-@GV/build/test/tools/sycl-post-link/device-code-split/Output/per-aspect-split-3.ll.tmp_1.ll:1:55: note: found here ; ModuleID = '/localdisk2/dwoodwor/intel-llvm-kernel1-bar-@GV/llvm/test/tools/sycl-post-link/device-code-split/per-aspect-split-3.ll' ^~~ ``` ``` command line:1:22: error: CHECK-M0-IR-NOT: excluded string found in input -implicit-check-not='kernel1' ^ /localdisk2/dwoodwor/intel-llvm-kernel1-bar-@GV/build/test/tools/sycl-post-link/device-code-split/Output/per-aspect-split-1.ll.tmp_0.ll:1:47: note: found here ; ModuleID = '/localdisk2/dwoodwor/intel-llvm-kernel1-bar-@GV/llvm/test/tools/sycl-post-link/device-code-split/per-aspect-split-1.ll' ^~~~~~~ ``` ``` /localdisk2/dwoodwor/intel-llvm-kernel1-bar-@GV/llvm/test/tools/sycl-post-link/device-code-split/basic-module-split.ll:13:17: error: CHECK-TU1-NOT: excluded string found i n input ;CHECK-TU1-NOT: @{{.*}}GV{{.*}} ^ /localdisk2/dwoodwor/intel-llvm-kernel1-bar-@GV/build/test/tools/sycl-post-link/device-code-split/Output/basic-module-split.ll.tmp_1.ll:1:59: note: found here ; ModuleID = '/localdisk2/dwoodwor/intel-llvm-kernel1-bar-@GV/llvm/test/tools/sycl-post-link/device-code-split/basic-module-split.ll' ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
1 parent 66d849a commit a607805

File tree

75 files changed

+105
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+105
-105
lines changed

llvm/test/tools/sycl-post-link/assert/indirect-with-split-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; __devicelib_assert_fail, then all kernels in the module are conservatively
99
; marked as using asserts.
1010

11-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
11+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
1212
; RUN: FileCheck %s -input-file=%t_0.prop -check-prefix=PRESENCE-CHECK
1313
; RUN: FileCheck %s -input-file=%t_0.prop -check-prefix=ABSENCE-CHECK
1414

llvm/test/tools/sycl-post-link/assert/indirect-with-split.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; __devicelib_assert_fail, then all kernels in the module are conservatively
77
; marked as using asserts.
88

9-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
9+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
1010
; RUN: FileCheck %s -input-file=%t_0.prop
1111

1212
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"

llvm/test/tools/sycl-post-link/assert/property-1.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
; property - it should include only kernels that call assertions in their call
33
; graph.
44

5-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
5+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
66
; RUN: FileCheck %s -input-file=%t_0.prop --implicit-check-not TheKernel2
77
;
8-
; RUN: sycl-post-link -split=source -symbols -S %s -o %t.table
8+
; RUN: sycl-post-link -split=source -symbols -S < %s -o %t.table
99
; RUN: FileCheck %s -input-file=%t_0.prop --implicit-check-not TheKernel2
1010
;
11-
; RUN: sycl-post-link -symbols -S %s -o %t.table
11+
; RUN: sycl-post-link -symbols -S < %s -o %t.table
1212
; RUN: FileCheck %s -input-file=%t_0.prop --implicit-check-not TheKernel2
1313
;
14-
; RUN: sycl-post-link -split=kernel -symbols -S %s -o %t.table
14+
; RUN: sycl-post-link -split=kernel -symbols -S < %s -o %t.table
1515
; RUN: FileCheck %s -input-file=%t_0.prop --check-prefixes=CHECK-K1
1616
; RUN: FileCheck %s -input-file=%t_1.prop --check-prefixes=CHECK-K2
1717
; RUN: FileCheck %s -input-file=%t_2.prop --check-prefixes=CHECK-K3

llvm/test/tools/sycl-post-link/assert/property-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; property - it should include only kernels that call assertions in their call
33
; graph.
44

5-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
5+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
66
; RUN: FileCheck %s -input-file=%t_0.prop -check-prefix=PRESENCE-CHECK
77
; RUN: FileCheck %s -input-file=%t_0.prop -check-prefix=ABSENCE-CHECK
88

llvm/test/tools/sycl-post-link/device-code-split/auto-module-split-1.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
1+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
22
; By default auto mode is equal to source mode
33
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-TU0,CHECK
44
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefixes CHECK-TU1,CHECK

llvm/test/tools/sycl-post-link/device-code-split/auto-module-split-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
1+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
22
; In precense of indirectly callable function auto mode is equal to no split,
33
; which means that separate LLVM IR file for device is not generated and we only
44
; need to check generated symbol table

llvm/test/tools/sycl-post-link/device-code-split/auto-module-split-3.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
1+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
22
; In precense of indirect calls auto mode is equal to no split,
33
; which means that separate LLVM IR file for device is not generated and we only
44
; need to check generated symbol table

llvm/test/tools/sycl-post-link/device-code-split/auto-module-split-func-ptr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
1+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
22
; RUN: FileCheck %s -input-file=%t_0.sym
33

44
; This test checkes that module is not split if function pointer's user is not

llvm/test/tools/sycl-post-link/device-code-split/basic-module-split.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link -split=source -symbols -S %s -o %t.table
1+
; RUN: sycl-post-link -split=source -symbols -S < %s -o %t.table
22
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-TU0,CHECK
33
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefixes CHECK-TU1,CHECK
44
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefixes CHECK-TU0-TXT

llvm/test/tools/sycl-post-link/device-code-split/one-kernel-per-module.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link -split=kernel -symbols -S %s -o %t.files.table
1+
; RUN: sycl-post-link -split=kernel -symbols -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.ll --check-prefixes CHECK-MODULE0,CHECK
33
; RUN: FileCheck %s -input-file=%t.files_0.sym --check-prefixes CHECK-MODULE0-TXT
44
; RUN: FileCheck %s -input-file=%t.files_1.ll --check-prefixes CHECK-MODULE1,CHECK

llvm/test/tools/sycl-post-link/device-code-split/per-aspect-split-1.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; that use aspects from kernels which doesn't use aspects regardless of device
88
; code split mode
99

10-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
10+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
1111
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-M0-IR \
1212
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
1313
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefixes CHECK-M1-IR \
@@ -21,7 +21,7 @@
2121
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
2222
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
2323

24-
; RUN: sycl-post-link -split=source -symbols -S %s -o %t.table
24+
; RUN: sycl-post-link -split=source -symbols -S < %s -o %t.table
2525
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-M0-IR \
2626
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
2727
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefixes CHECK-M1-IR \
@@ -35,7 +35,7 @@
3535
; RUN: FileCheck %s -input-file=%t_2.sym --check-prefixes CHECK-M2-SYMS \
3636
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
3737

38-
; RUN: sycl-post-link -split=kernel -symbols -S %s -o %t.table
38+
; RUN: sycl-post-link -split=kernel -symbols -S < %s -o %t.table
3939
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-M0-IR \
4040
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
4141
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefixes CHECK-M1-IR \

llvm/test/tools/sycl-post-link/device-code-split/per-aspect-split-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; The test is intended to check that sycl-post-link correctly groups kernels
22
; by unique sets of aspects used in them
33

4-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
4+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
55
; RUN: FileCheck %s -input-file=%t.table --check-prefix CHECK-TABLE
66
;
77
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefix CHECK-M0-SYMS \

llvm/test/tools/sycl-post-link/device-code-split/per-aspect-split-3.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; This test is intended to check that per-aspect device code split works as
22
; expected with SYCL_EXTERNAL functions
33

4-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
4+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
55
; RUN: FileCheck %s -input-file=%t.table --check-prefix CHECK-TABLE
66
;
77
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefix CHECK-M0-SYMS \

llvm/test/tools/sycl-post-link/device-code-split/per-aspect-split-4.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
; This test is intended to check that we do not perform per-aspect split if
22
; it was disabled through one or another sycl-post-link option
33

4-
; RUN: sycl-post-link -symbols -S %s -o %t.table
4+
; RUN: sycl-post-link -symbols -S < %s -o %t.table
55
; RUN: FileCheck %s -input-file=%t.table --check-prefix CHECK-TABLE
66
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefix CHECK-IR
77
;
88
; -lower-esimd is needed so sycl-post-link does not complain about no actions
99
; specified
10-
; RUN: sycl-post-link -lower-esimd -ir-output-only -S %s -o %t.ll
10+
; RUN: sycl-post-link -lower-esimd -ir-output-only -S < %s -o %t.ll
1111
; RUN: FileCheck %s -input-file=%t.ll --check-prefix CHECK-IR
1212

1313
; We expect to see only one module generated:

llvm/test/tools/sycl-post-link/device-code-split/per-reqd-wg-size-split-1.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; that use reqd_work_group_size attributes from kernels which doesn't use them
88
; regardless of device code split mode
99

10-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
10+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
1111
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-M0-IR \
1212
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
1313
; RUN: FileCheck %s -input-file=%t_2.ll --check-prefixes CHECK-M1-IR \
@@ -21,7 +21,7 @@
2121
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-M2-SYMS \
2222
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2
2323

24-
; RUN: sycl-post-link -split=source -symbols -S %s -o %t.table
24+
; RUN: sycl-post-link -split=source -symbols -S < %s -o %t.table
2525
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-M0-IR \
2626
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
2727
; RUN: FileCheck %s -input-file=%t_2.ll --check-prefixes CHECK-M1-IR \
@@ -35,7 +35,7 @@
3535
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-M2-SYMS \
3636
; RUN: --implicit-check-not kernel1 --implicit-check-not kernel2
3737

38-
; RUN: sycl-post-link -split=kernel -symbols -S %s -o %t.table
38+
; RUN: sycl-post-link -split=kernel -symbols -S < %s -o %t.table
3939
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-M0-IR \
4040
; RUN: --implicit-check-not kernel0 --implicit-check-not kernel1
4141
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefixes CHECK-M1-IR \

llvm/test/tools/sycl-post-link/device-code-split/per-reqd-wg-size-split-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; The test is intended to check that sycl-post-link correctly groups kernels
22
; by unique reqd_work_group_size values used in them
33

4-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.table
4+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.table
55
; RUN: FileCheck %s -input-file=%t.table --check-prefix CHECK-TABLE
66
;
77
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefix CHECK-M0-SYMS \

llvm/test/tools/sycl-post-link/device-code-split/per-reqd-wg-size-split-3.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
; This test is intended to check that we do not perform per-reqd_work_group_size
22
; split if it was disabled through one or another sycl-post-link option
33

4-
; RUN: sycl-post-link -symbols -S %s -o %t.table
4+
; RUN: sycl-post-link -symbols -S < %s -o %t.table
55
; RUN: FileCheck %s -input-file=%t.table --check-prefix CHECK-TABLE
66
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefix CHECK-IR
77
;
88
; -lower-esimd is needed so sycl-post-link does not complain about no actions
99
; specified
10-
; RUN: sycl-post-link -lower-esimd -ir-output-only -S %s -o %t.ll
10+
; RUN: sycl-post-link -lower-esimd -ir-output-only -S < %s -o %t.ll
1111
; RUN: FileCheck %s -input-file=%t.ll --check-prefix CHECK-IR
1212

1313
; We expect to see only one module generated:

llvm/test/tools/sycl-post-link/device-code-split/split-with-func-ptrs.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
; modules.
44

55
; -- Per-source split
6-
; RUN: sycl-post-link -split=source -emit-param-info -symbols -emit-exported-symbols -split-esimd -lower-esimd -O2 -spec-const=rt -S %s -o %tA.table
6+
; RUN: sycl-post-link -split=source -emit-param-info -symbols -emit-exported-symbols -split-esimd -lower-esimd -O2 -spec-const=rt -S < %s -o %tA.table
77
; RUN: FileCheck %s -input-file=%tA_0.ll --check-prefixes CHECK-A0
88
; RUN: FileCheck %s -input-file=%tA_1.ll --check-prefixes CHECK-A1
99
; -- No split
10-
; RUN: sycl-post-link -emit-param-info -symbols -emit-exported-symbols -split-esimd -lower-esimd -O2 -spec-const=rt -S %s -o %tB.table
10+
; RUN: sycl-post-link -emit-param-info -symbols -emit-exported-symbols -split-esimd -lower-esimd -O2 -spec-const=rt -S < %s -o %tB.table
1111
; RUN: FileCheck %s -input-file=%tB_0.ll --check-prefixes CHECK-B0
1212
; -- Per-kernel split
13-
; RUN: sycl-post-link -split=kernel -emit-param-info -symbols -emit-exported-symbols -split-esimd -lower-esimd -O2 -spec-const=rt -S %s -o %tC.table
13+
; RUN: sycl-post-link -split=kernel -emit-param-info -symbols -emit-exported-symbols -split-esimd -lower-esimd -O2 -spec-const=rt -S < %s -o %tC.table
1414
; RUN: FileCheck %s -input-file=%tC_0.ll --check-prefixes CHECK-C0
1515
; RUN: FileCheck %s -input-file=%tC_1.ll --check-prefixes CHECK-C1
1616

llvm/test/tools/sycl-post-link/device-code-split/split-with-kernel-declarations.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
; Purpose of this test is to check that sycl-post-link does not treat
22
; declarations as entry points.
33

4-
; RUN: sycl-post-link -split=source -symbols -S %s -o %t.table
4+
; RUN: sycl-post-link -split=source -symbols -S < %s -o %t.table
55
; RUN: FileCheck %s -input-file=%t.table --check-prefix CHECK-PER-SOURCE-TABLE
66
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefix CHECK-PER-SOURCE-SYM0
77
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefix CHECK-PER-SOURCE-SYM1
88
;
9-
; RUN: sycl-post-link -split=kernel -symbols -S %s -o %t1.table
9+
; RUN: sycl-post-link -split=kernel -symbols -S < %s -o %t1.table
1010
; RUN: FileCheck %s -input-file=%t1.table --check-prefix CHECK-PER-KERNEL-TABLE
1111
; RUN: FileCheck %s -input-file=%t1_0.sym --check-prefix CHECK-PER-KERNEL-SYM0
1212
; RUN: FileCheck %s -input-file=%t1_1.sym --check-prefix CHECK-PER-KERNEL-SYM1

llvm/test/tools/sycl-post-link/device-globals/test_global_variable.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link --device-globals -S %s -o %t.files.table
1+
; RUN: sycl-post-link --device-globals -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.prop --check-prefix CHECK-PROP
33
source_filename = "test_global_variable.cpp"
44
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"

llvm/test/tools/sycl-post-link/device-globals/test_global_variable_many_kernels_in_one_module.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link --device-globals --split=source -S %s -o %t.files.table
1+
; RUN: sycl-post-link --device-globals --split=source -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.ll --check-prefix CHECK-MOD0
33
; RUN: FileCheck %s -input-file=%t.files_1.ll --check-prefix CHECK-MOD1
44

llvm/test/tools/sycl-post-link/device-globals/test_global_variable_many_modules_no_dev_global.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link --device-globals --split=source -S %s -o %t.files.table
1+
; RUN: sycl-post-link --device-globals --split=source -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.ll --check-prefix CHECK-MOD0
33
; RUN: FileCheck %s -input-file=%t.files_1.ll --check-prefix CHECK-MOD1
44
; RUN: FileCheck %s -input-file=%t.files_2.ll --check-prefix CHECK-MOD2

llvm/test/tools/sycl-post-link/device-globals/test_global_variable_many_modules_no_dev_img_scope.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link --device-globals --split=source -S %s -o %t.files.table
1+
; RUN: sycl-post-link --device-globals --split=source -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.ll --check-prefix CHECK-MOD0
33
; RUN: FileCheck %s -input-file=%t.files_1.ll --check-prefix CHECK-MOD1
44
; RUN: FileCheck %s -input-file=%t.files_2.ll --check-prefix CHECK-MOD2

llvm/test/tools/sycl-post-link/device-globals/test_global_variable_many_modules_two_vars_ok.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link --device-globals --split=source -S %s -o %t.files.table
1+
; RUN: sycl-post-link --device-globals --split=source -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.ll --check-prefix CHECK-MOD0
33
; RUN: FileCheck %s -input-file=%t.files_1.ll --check-prefix CHECK-MOD1
44

llvm/test/tools/sycl-post-link/device-globals/test_global_variable_name_mapping_metadata.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link --device-globals --emit-program-metadata -S %s -o %t.files.table
1+
; RUN: sycl-post-link --device-globals --emit-program-metadata -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.prop --check-prefix CHECK-PROP
33

44
; This test is intended to check that the global_id_mapping program metadata properties are

llvm/test/tools/sycl-post-link/device-globals/test_no_property_set_header_for_an_empty_set.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link --device-globals -S %s -o %t.files.table
1+
; RUN: sycl-post-link --device-globals -S < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.prop --check-prefix CHECK-PROP
33

44
; This test is intended to check that sycl-post-link doesn't add the header for

llvm/test/tools/sycl-post-link/device-requirements/aspects.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
; });
1414
; }
1515

16-
; RUN: sycl-post-link -split=auto %s -o %t.files.table
16+
; RUN: sycl-post-link -split=auto < %s -o %t.files.table
1717
; RUN: FileCheck %s -input-file=%t.files_0.prop --check-prefix CHECK-PROP-AUTO-SPLIT
1818

19-
; RUN: sycl-post-link -split=kernel %s -o %t.files.table
19+
; RUN: sycl-post-link -split=kernel < %s -o %t.files.table
2020
; RUN: FileCheck %s -input-file=%t.files_0.prop --check-prefix CHECK-PROP-KERNEL-SPLIT-0
2121
; RUN: FileCheck %s -input-file=%t.files_1.prop --check-prefix CHECK-PROP-KERNEL-SPLIT-1
2222

llvm/test/tools/sycl-post-link/device-requirements/fixed-target.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: sycl-post-link -split=auto %s -o %t.files.table
1+
; RUN: sycl-post-link -split=auto < %s -o %t.files.table
22
; RUN: FileCheck %s -input-file=%t.files_0.prop
33

44
; CHECK: [SYCL/device requirements]

llvm/test/tools/sycl-post-link/device-requirements/reqd-work-group-size.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
; return 0;
2222
; }
2323

24-
; RUN: sycl-post-link -split=auto %s -o %t.table
24+
; RUN: sycl-post-link -split=auto < %s -o %t.table
2525
; RUN: FileCheck %s -input-file=%t_0.prop --check-prefix CHECK-PROP-AUTO-SPLIT-0
2626
; RUN: FileCheck %s -input-file=%t_1.prop --check-prefix CHECK-PROP-AUTO-SPLIT-1
2727

llvm/test/tools/sycl-post-link/emit_exported_symbols.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
; This test checks that the post-link tool generates list of exported symbols.
22
;
33
; Global scope
4-
; RUN: sycl-post-link -symbols -emit-exported-symbols -S %s -o %t.global.files.table
4+
; RUN: sycl-post-link -symbols -emit-exported-symbols -S < %s -o %t.global.files.table
55
; RUN: FileCheck %s -input-file=%t.global.files_0.prop --implicit-check-not="NotExported" --check-prefix=CHECK-GLOBAL-PROP
66
;
77
; Per-module split
8-
; RUN: sycl-post-link -symbols -split=source -emit-exported-symbols -S %s -o %t.per_module.files.table
8+
; RUN: sycl-post-link -symbols -split=source -emit-exported-symbols -S < %s -o %t.per_module.files.table
99
; RUN: FileCheck %s -input-file=%t.per_module.files_0.prop -implicit-check-not="NotExported" --check-prefix=CHECK-PERMODULE-0-PROP
1010
; RUN: FileCheck %s -input-file=%t.per_module.files_1.prop -implicit-check-not="NotExported" --check-prefix=CHECK-KERNELONLY-PROP
1111
; RUN: FileCheck %s -input-file=%t.per_module.files_2.prop -implicit-check-not="NotExported" --check-prefix=CHECK-PERMODULE-2-PROP
1212
;
1313
; Per-kernel split
14-
; RUN: sycl-post-link -symbols -split=kernel -emit-exported-symbols -S %s -o %t.per_kernel.files.table
14+
; RUN: sycl-post-link -symbols -split=kernel -emit-exported-symbols -S < %s -o %t.per_kernel.files.table
1515
; RUN: FileCheck %s -input-file=%t.per_kernel.files_0.prop --implicit-check-not="NotExported" --check-prefix=CHECK-PERKERNEL-0-PROP
1616
; RUN: FileCheck %s -input-file=%t.per_kernel.files_1.prop --implicit-check-not="NotExported" --check-prefix=CHECK-PERKERNEL-1-PROP
1717
; RUN: FileCheck %s -input-file=%t.per_kernel.files_2.prop --implicit-check-not="NotExported" --check-prefix=CHECK-PERKERNEL-2-PROP

llvm/test/tools/sycl-post-link/emit_program_metadata.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; This test checks that the post-link tool generates SYCL program metadata.
22
;
3-
; RUN: sycl-post-link -emit-program-metadata -device-globals -S %s -o %t.files.table
3+
; RUN: sycl-post-link -emit-program-metadata -device-globals -S < %s -o %t.files.table
44
; RUN: FileCheck %s -input-file=%t.files.table --check-prefixes CHECK-TABLE
55
; RUN: FileCheck %s -input-file=%t.files_0.prop --match-full-lines --check-prefixes CHECK-PROP
66

llvm/test/tools/sycl-post-link/erase_used.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
; the output modules when splitting modules, creating a single row table,
33
; and outputing IR only
44
;
5-
; RUN: sycl-post-link -split=kernel -S %s -o %t.files.table
5+
; RUN: sycl-post-link -split=kernel -S < %s -o %t.files.table
66
; RUN: FileCheck %s -input-file=%t.files_0.ll
77
; RUN: FileCheck %s -input-file=%t.files_1.ll
88
;
9-
; RUN: sycl-post-link -S -split=auto -symbols -split-esimd -lower-esimd -O2 -spec-const=default %s -o %t.out.table
9+
; RUN: sycl-post-link -S -split=auto -symbols -split-esimd -lower-esimd -O2 -spec-const=default < %s -o %t.out.table
1010
; RUN: FileCheck %s --input-file=%t.out_0.ll
1111
;
12-
; RUN: sycl-post-link -S -split=auto -ir-output-only %s -o %t.out_ir_only.ll
12+
; RUN: sycl-post-link -S -split=auto -ir-output-only < %s -o %t.out_ir_only.ll
1313
; RUN: FileCheck %s --input-file %t.out_ir_only.ll
1414

1515
target triple = "spir64-unknown-unknown"

llvm/test/tools/sycl-post-link/erase_used_decl.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; This test checks that the post-link tool doesn't incorrectly remove function
22
; declarations which are still in use while erasing the "llvm.used" global.
33
;
4-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.files.table
4+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.files.table
55
; RUN: FileCheck %s -input-file=%t.files_0.ll
66
;
77
target triple = "spir64-unknown-unknown"

llvm/test/tools/sycl-post-link/erase_used_decl_opaque.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; This test checks that the post-link tool doesn't incorrectly remove function
22
; declarations which are still in use while erasing the "llvm.used" global.
33
;
4-
; RUN: sycl-post-link -split=auto -symbols -S %s -o %t.files.table
4+
; RUN: sycl-post-link -split=auto -symbols -S < %s -o %t.files.table
55
; RUN: FileCheck %s -input-file=%t.files_0.ll
66
;
77
target triple = "spir64-unknown-unknown"

llvm/test/tools/sycl-post-link/erase_used_opaque.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
; the output modules when splitting modules, creating a single row table,
33
; and outputing IR only
44
;
5-
; RUN: sycl-post-link -split=kernel -S %s -o %t.files.table
5+
; RUN: sycl-post-link -split=kernel -S < %s -o %t.files.table
66
; RUN: FileCheck %s -input-file=%t.files_0.ll
77
; RUN: FileCheck %s -input-file=%t.files_1.ll
88
;
9-
; RUN: sycl-post-link -S -split=auto -symbols -split-esimd -lower-esimd -O2 -spec-const=default %s -o %t.out.table
9+
; RUN: sycl-post-link -S -split=auto -symbols -split-esimd -lower-esimd -O2 -spec-const=default < %s -o %t.out.table
1010
; RUN: FileCheck %s --input-file=%t.out_0.ll
1111
;
12-
; RUN: sycl-post-link -S -split=auto -ir-output-only %s -o %t.out_ir_only.ll
12+
; RUN: sycl-post-link -S -split=auto -ir-output-only < %s -o %t.out_ir_only.ll
1313
; RUN: FileCheck %s --input-file %t.out_ir_only.ll
1414

1515
target triple = "spir64-unknown-unknown"

0 commit comments

Comments
 (0)