Skip to content

Commit 18e7bd0

Browse files
Skipped using temporary directory
1 parent 39e166d commit 18e7bd0

File tree

4 files changed

+27
-31
lines changed

4 files changed

+27
-31
lines changed

llvm/test/Transforms/DeadArgElim/sycl-kernels-neg2.ll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
; RUN: rm -rf %t && mkdir -p %t
2-
; RUN: touch %t/int_header.h
3-
; RUN: not --crash opt < %s -deadargelim-sycl -S -integr-header-file %t/bad_file.h
1+
; RUN: touch %t-int_header.h
2+
; RUN: not --crash opt < %s -deadargelim-sycl -S -integr-header-file %t-bad_file.h
43

54
; Path to the integration header is wrong.
65

llvm/test/Transforms/DeadArgElim/sycl-kernels-neg3.ll

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
; RUN: rm -rf %t && mkdir -p %t
2-
; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t/int_header.h
3-
; RUN: echo ' // NegativeSyclKernel' >> %t/int_header.h
4-
; RUN: echo ' false, false,' >> %t/int_header.h
5-
; RUN: echo '};' >> %t/int_header.h
6-
; RUN: not --crash opt < %s -deadargelim-sycl -S -integr-header-file %t/int_header.h
1+
; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t-int_header.h
2+
; RUN: echo ' // NegativeSyclKernel' >> %t-int_header.h
3+
; RUN: echo ' false, false,' >> %t-int_header.h
4+
; RUN: echo '};' >> %t-int_header.h
5+
; RUN: not --crash opt < %s -deadargelim-sycl -S -integr-header-file %t-int_header.h
76

87
; No OMIT_TABLE markers in the integration header.
98

llvm/test/Transforms/DeadArgElim/sycl-kernels-neg4.ll

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
; RUN: rm -rf %t && mkdir -p %t
2-
; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t/int_header.h
3-
; RUN: echo ' // OMIT_TABLE_BEGIN' >> %t/int_header.h
4-
; RUN: echo ' // WrongKernelName' >> %t/int_header.h
5-
; RUN: echo ' false, false,' >> %t/int_header.h
6-
; RUN: echo ' // OMIT_TABLE_END' >> %t/int_header.h
7-
; RUN: echo '};' >> %t/int_header.h
8-
; RUN: not --crash opt < %s -deadargelim-sycl -S -integr-header-file %t/int_header.h
1+
; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t-int_header.h
2+
; RUN: echo ' // OMIT_TABLE_BEGIN' >> %t-int_header.h
3+
; RUN: echo ' // WrongKernelName' >> %t-int_header.h
4+
; RUN: echo ' false, false,' >> %t-int_header.h
5+
; RUN: echo ' // OMIT_TABLE_END' >> %t-int_header.h
6+
; RUN: echo '};' >> %t-int_header.h
7+
; RUN: not --crash opt < %s -deadargelim-sycl -S -integr-header-file %t-int_header.h
98

109
; Wrong kernel name in the integration header.
1110

llvm/test/Transforms/DeadArgElim/sycl-kernels.ll

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
2-
; RUN: rm -rf %t && mkdir -p %t
3-
; RUN: echo 'some code we want to preserve' >> %t/int_header.h
4-
; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t/int_header.h
5-
; RUN: echo ' // OMIT_TABLE_BEGIN' >> %t/int_header.h
6-
; RUN: echo ' // SyclKernel1' >> %t/int_header.h
7-
; RUN: echo ' false, false,' >> %t/int_header.h
8-
; RUN: echo ' // SyclKernel2' >> %t/int_header.h
9-
; RUN: echo ' false, false,' >> %t/int_header.h
10-
; RUN: echo ' // OMIT_TABLE_END' >> %t/int_header.h
11-
; RUN: echo '};' >> %t/int_header.h
12-
; RUN: echo 'some code we want to preserve' >> %t/int_header.h
2+
; RUN: echo 'some code we want to preserve' >> %t-int_header.h
3+
; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t-int_header.h
4+
; RUN: echo ' // OMIT_TABLE_BEGIN' >> %t-int_header.h
5+
; RUN: echo ' // SyclKernel1' >> %t-int_header.h
6+
; RUN: echo ' false, false,' >> %t-int_header.h
7+
; RUN: echo ' // SyclKernel2' >> %t-int_header.h
8+
; RUN: echo ' false, false,' >> %t-int_header.h
9+
; RUN: echo ' // OMIT_TABLE_END' >> %t-int_header.h
10+
; RUN: echo '};' >> %t-int_header.h
11+
; RUN: echo 'some code we want to preserve' >> %t-int_header.h
1312
; RUN: opt < %s -deadargelim -S | FileCheck %s --check-prefixes=CHECK
14-
; RUN: opt < %s -deadargelim-sycl -S -integr-header-file %t/int_header.h | FileCheck %s --check-prefixes=CHECK-SYCL
15-
; RUN: cat %t/int_header.h | FileCheck %s --check-prefixes=CHECK-INT-HEADER
13+
; RUN: opt < %s -deadargelim-sycl -S -integr-header-file %t-int_header.h | FileCheck %s --check-prefixes=CHECK-SYCL
14+
; RUN: cat %t-int_header.h | FileCheck %s --check-prefixes=CHECK-INT-HEADER
1615

1716
; This test checks eliminating dead arguments
18-
; from SYCL kernel function.
17+
; from SPIR kernel functions in SYCL environment.
1918

2019
target triple = "spir64-unknown-unknown-sycldevice"
2120

0 commit comments

Comments
 (0)