Skip to content

Commit e35466b

Browse files
authored
[SYCL][NFC] Unify include style for sycl mock header (#2438)
- Remove unnecessary -I option from the run command
1 parent edae89f commit e35466b

File tree

64 files changed

+133
-134
lines changed

Some content is hidden

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

64 files changed

+133
-134
lines changed

clang/test/CodeGenSYCL/accessor_inheritance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
2-
#include <sycl.hpp>
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
2+
#include "Inputs/sycl.hpp"
33

44
struct Base {
55
int A, B;

clang/test/CodeGenSYCL/basic-kernel-wrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
// This test checks that compiler generates correct kernel wrapper for basic
44
// case.
55

6-
#include "sycl.hpp"
6+
#include "Inputs/sycl.hpp"
77

88
template <typename name, typename Func>
99
__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) {

clang/test/CodeGenSYCL/buffer_location.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -emit-llvm %s -o - | FileCheck %s
22

33
// CHECK: define {{.*}}spir_kernel void @_ZTSZ4mainE15kernel_function{{.*}} !kernel_arg_buffer_location ![[MDBL:[0-9]+]]
44
// CHECK: ![[MDBL]] = !{i32 3, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 2, i32 -1, i32 -1, i32 -1, i32 2, i32 -1, i32 -1, i32 -1, i32 -1}
55

6-
#include "sycl.hpp"
6+
#include "Inputs/sycl.hpp"
77

88
struct Base {
99
int A, B;

clang/test/CodeGenSYCL/const-wg-init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -I %S/Inputs -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

3-
#include "sycl.hpp"
3+
#include "Inputs/sycl.hpp"
44

55
template <typename KernelName, typename KernelType>
66
__attribute__((sycl_kernel)) void

clang/test/CodeGenSYCL/debug-info-srcpos-kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang -fsycl-device-only %s -S -emit-llvm -O0 -I %S/Inputs -g -o - | FileCheck %s
1+
// RUN: %clang -fsycl-device-only %s -S -emit-llvm -O0 -g -o - | FileCheck %s
22
//
33
// Verify the SYCL kernel routine is marked artificial and has no source
44
// correlation.
@@ -9,7 +9,7 @@
99
// 'kernel' template function on line 15 in this file).
1010
//
1111

12-
#include <sycl.hpp>
12+
#include "Inputs/sycl.hpp"
1313

1414
template <typename name, typename Func>
1515
__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) {

clang/test/CodeGenSYCL/device-variables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
enum class test_type { value1, value2, value3 };
44

clang/test/CodeGenSYCL/esimd_metadata1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -disable-llvm-passes -triple spir64-unknown-unknown-sycldevice \
2-
// RUN: -fsycl -fsycl-is-device -fsycl-explicit-simd -I %S/Inputs -S -emit-llvm %s -o - | \
2+
// RUN: -fsycl -fsycl-is-device -fsycl-explicit-simd -S -emit-llvm %s -o - | \
33
// RUN: FileCheck %s
44

55
// The test checks that:

clang/test/CodeGenSYCL/image_accessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -I %S/Inputs -disable-llvm-passes -emit-llvm %s -o %t.ll
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o %t.ll
22
// RUN: FileCheck < %t.ll --enable-var-scope %s --check-prefix=CHECK-1DRO
33
// RUN: FileCheck < %t.ll --enable-var-scope %s --check-prefix=CHECK-2DRO
44
// RUN: FileCheck < %t.ll --enable-var-scope %s --check-prefix=CHECK-3DRO
@@ -31,7 +31,7 @@
3131
// CHECK-3DWO: call spir_func void @{{.*}}__init{{.*}}(%{{.*}}cl::sycl::accessor{{.*}} %{{[0-9]+}}, %opencl.image3d_wo_t addrspace(1)* %{{[0-9]+}})
3232
//
3333
// TODO: Add tests for the image_array opencl datatype support.
34-
#include "sycl.hpp"
34+
#include "Inputs/sycl.hpp"
3535

3636
int main() {
3737

clang/test/CodeGenSYCL/inheritance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

3-
#include <sycl.hpp>
3+
#include "Inputs/sycl.hpp"
44

55
class second_base {
66
public:

clang/test/CodeGenSYCL/int_header1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
22
// RUN: FileCheck -input-file=%t.h %s
33

44
// CHECK:template <> struct KernelInfo<class KernelName> {
@@ -19,7 +19,7 @@
1919
// integration header when the kernel name class is expressed in different
2020
// forms.
2121

22-
#include "sycl.hpp"
22+
#include "Inputs/sycl.hpp"
2323

2424
template <typename KernelName, typename KernelType>
2525
__attribute__((sycl_kernel)) void kernel_single_task(const KernelType &kernelFunc) {

clang/test/CodeGenSYCL/int_header_inline_ns.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
22
// RUN: FileCheck -input-file=%t.h %s
33

44
// This test checks if the SYCL device compiler is able to generate correct
55
// integration header when the kernel name class is wrapped in an inline
66
// namespace.
77

8-
#include "sycl.hpp"
8+
#include "Inputs/sycl.hpp"
99

1010
template <typename KernelName, typename KernelType>
1111
__attribute__((sycl_kernel)) void kernel_single_task(const KernelType &kernelFunc) {

clang/test/CodeGenSYCL/int_header_spec_const.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
22
// RUN: FileCheck -input-file=%t.h %s
33

4-
#include "sycl.hpp"
4+
#include "Inputs/sycl.hpp"
55

66
// This test verifies proper emission of specialization constants into the
77
// integration header.

clang/test/CodeGenSYCL/integration_header.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -emit-llvm -o %t.ll
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -emit-llvm -o %t.ll
22
// RUN: FileCheck -input-file=%t.h %s
33
//
44
// CHECK: #include <CL/sycl/detail/kernel_desc.hpp>
@@ -65,7 +65,7 @@
6565
// CHECK: template <> struct KernelInfo<::third_kernel<1, int, ::point<X>>> {
6666
// CHECK: template <> struct KernelInfo<::fourth_kernel<::template_arg_ns::namespaced_arg<1>>> {
6767

68-
#include "sycl.hpp"
68+
#include "Inputs/sycl.hpp"
6969

7070
template <typename KernelName, typename KernelType>
7171
__attribute__((sycl_kernel)) void kernel_single_task(const KernelType &kernelFunc) {

clang/test/CodeGenSYCL/kernel-device-space-arg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -emit-llvm %s -disable-llvm-passes -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -emit-llvm %s -disable-llvm-passes -o - | FileCheck %s
22

33
// CHECK: define {{.*}}spir_kernel void @_ZTSZ4mainE15kernel_function(i32 addrspace(5)* {{.*}} i32 addrspace(6)* {{.*}}
44

5-
#include "sycl.hpp"
5+
#include "Inputs/sycl.hpp"
66

77
int main() {
88
__attribute__((opencl_global_device)) int *GLOBDEV = nullptr;

clang/test/CodeGenSYCL/kernel-metadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -emit-llvm %s -o - | FileCheck %s
22

33
// CHECK-NOT: define {{.*}}spir_kernel void @{{.*}}kernel_function{{.*}} !kernel_arg_addr_space {{.*}} !kernel_arg_access_qual {{.*}} !kernel_arg_type {{.*}} !kernel_arg_base_type {{.*}} !kernel_arg_type_qual {{.*}}
44

5-
#include "sycl.hpp"
5+
#include "Inputs/sycl.hpp"
66

77
int main() {
88
cl::sycl::accessor<int, 1, cl::sycl::access::mode::read_write> accessorA;

clang/test/CodeGenSYCL/kernel-param-acc-array-ih.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
22
// RUN: FileCheck -input-file=%t.h %s
33

44
// This test checks the integration header generated when
@@ -32,7 +32,7 @@
3232

3333
// CHECK: template <> struct KernelInfo<class kernel_A> {
3434

35-
#include <sycl.hpp>
35+
#include "Inputs/sycl.hpp"
3636

3737
using namespace cl::sycl;
3838

clang/test/CodeGenSYCL/kernel-param-acc-array.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
// This test checks a kernel argument that is an Accessor array
44

5-
#include <sycl.hpp>
5+
#include "Inputs/sycl.hpp"
66

77
using namespace cl::sycl;
88

clang/test/CodeGenSYCL/kernel-param-member-acc-array-ih.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
22
// RUN: FileCheck -input-file=%t.h %s
33

44
// This test checks the integration header when kernel argument
@@ -32,7 +32,7 @@
3232

3333
// CHECK: template <> struct KernelInfo<class kernel_C> {
3434

35-
#include <sycl.hpp>
35+
#include "Inputs/sycl.hpp"
3636

3737
using namespace cl::sycl;
3838

clang/test/CodeGenSYCL/kernel-param-member-acc-array.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -fsycl-int-header=%t.h -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsycl-int-header=%t.h -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
// This test checks a kernel with struct parameter that contains an Accessor array.
44

5-
#include <sycl.hpp>
5+
#include "Inputs/sycl.hpp"
66

77
using namespace cl::sycl;
88

clang/test/CodeGenSYCL/kernel-param-pod-array-ih.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
22
// RUN: FileCheck -input-file=%t.h %s
33
// This test checks the integration header generated for a kernel
44
// with an argument that is a POD array.
@@ -62,7 +62,7 @@
6262
// CHECK: template <> struct KernelInfo<class kernel_C> {
6363
// CHECK: template <> struct KernelInfo<class kernel_D> {
6464

65-
#include <sycl.hpp>
65+
#include "Inputs/sycl.hpp"
6666

6767
using namespace cl::sycl;
6868

clang/test/CodeGenSYCL/kernel-param-pod-array.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
// This test checks a kernel with an argument that is a POD array.
44

5-
#include <sycl.hpp>
5+
#include "Inputs/sycl.hpp"
66

77
using namespace cl::sycl;
88

clang/test/CodeGenSYCL/kernel_functor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.spv
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.spv
22
// RUN: FileCheck %s --input-file=%t.h
33

44
// Checks that functors are supported as SYCL kernels.
55

6-
#include "sycl.hpp"
6+
#include "Inputs/sycl.hpp"
77

88
constexpr auto sycl_read_write = cl::sycl::access::mode::read_write;
99
constexpr auto sycl_global_buffer = cl::sycl::access::target::global_buffer;

clang/test/CodeGenSYCL/kernel_name_with_typedefs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s -o %t.out
22
// RUN: FileCheck -input-file=%t.h %s
33

4-
#include "sycl.hpp"
4+
#include "Inputs/sycl.hpp"
55

66
template <typename KernelName, typename KernelType>
77
__attribute__((sycl_kernel)) void single_task(const KernelType &kernelFunc) {

clang/test/CodeGenSYCL/kernelname-enum.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -fsyntax-only
22
// RUN: FileCheck -input-file=%t.h %s
33

4-
#include "sycl.hpp"
4+
#include "Inputs/sycl.hpp"
55

66
enum unscoped_enum : int {
77
val_1,

clang/test/CodeGenSYCL/non-standard-layout.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -aux-triple x86_64-unknown-windows-unknown -disable-llvm-passes -S -emit-llvm %s -o - | FileCheck --check-prefix CHK-WIN %s
2-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -aux-triple x86_64-unknown-linux-unknown -disable-llvm-passes -S -emit-llvm %s -o - | FileCheck --check-prefix CHK-LIN %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -aux-triple x86_64-unknown-windows-unknown -disable-llvm-passes -S -emit-llvm %s -o - | FileCheck --check-prefix CHK-WIN %s
2+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -aux-triple x86_64-unknown-linux-unknown -disable-llvm-passes -S -emit-llvm %s -o - | FileCheck --check-prefix CHK-LIN %s
33

4-
#include "sycl.hpp"
4+
#include "Inputs/sycl.hpp"
55
// CHK-WIN: %struct{{.*}}F = type { i8, i8 }
66
// CHK-LIN: %struct{{.*}}F = type { i8 }
77
struct F1 {};

clang/test/CodeGenSYCL/pointers-in-structs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
// This test checks that compiler generates correct address spaces for pointer
44
// kernel arguments that are wrapped by struct.
55

6-
#include <sycl.hpp>
6+
#include "Inputs/sycl.hpp"
77

88
struct A {
99
float *F;

clang/test/CodeGenSYCL/pointers-int-header.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -o %t.out
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -o %t.out
22
// RUN: FileCheck -input-file=%t.h %s
33

44
// This test checks the integration header generated when:
55
// 1. Kernel argument is a pointer.
66
// 2. Kernel argument is a struct containing a pointer.
77

8-
#include <sycl.hpp>
8+
#include "Inputs/sycl.hpp"
99

1010
struct struct_with_pointer {
1111
int data_in_struct;

clang/test/CodeGenSYCL/sampler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -I %S/Inputs -disable-llvm-passes -emit-llvm %s -o - | FileCheck --enable-var-scope %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck --enable-var-scope %s
22
// CHECK: define spir_kernel void @{{[a-zA-Z0-9_]+}}(%opencl.sampler_t addrspace(2)* [[SAMPLER_ARG:%[a-zA-Z0-9_]+]])
33
// CHECK-NEXT: entry:
44
// CHECK-NEXT: [[SAMPLER_ARG]].addr = alloca %opencl.sampler_t addrspace(2)*, align 8
@@ -35,7 +35,7 @@
3535
// CHECK: [[LOAD_SMPL:%[0-9]+]] = load %opencl.sampler_t addrspace(2)*, %opencl.sampler_t addrspace(2)** [[SAMPLER_ARG_WRAPPED]].addr, align 8
3636
// CHECK: call spir_func void @{{[a-zA-Z0-9_]+}}(%"class.{{.*}}.cl::sycl::sampler" addrspace(4)* {{.*}}, %opencl.sampler_t addrspace(2)* [[LOAD_SMPL]])
3737
//
38-
#include "sycl.hpp"
38+
#include "Inputs/sycl.hpp"
3939

4040
struct sampler_wrapper {
4141
cl::sycl::sampler smpl;

clang/test/CodeGenSYCL/skip-host-classes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
// CHECK-NOT: declare dso_local spir_func void {{.+}}test{{.+}}printer{{.+}}
44
class test {

clang/test/CodeGenSYCL/stream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -I %S/Inputs -disable-llvm-passes -emit-llvm %s -o %t.ll
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o %t.ll
22
// RUN: FileCheck < %t.ll --enable-var-scope %s
33
//
44
// CHECK: define spir_kernel void @"{{.*}}StreamTester"(%"{{.*}}cl::sycl::stream"* byval(%"{{.*}}cl::sycl::stream") {{.*}}){{.*}}
55
// CHECK: call spir_func void @{{.*}}__init{{.*}}(%{{.*}}cl::sycl::stream{{.*}} addrspace(4)* %{{[0-9]+}})
66
// CHECK: call spir_func void @{{.*}}__finalize{{.*}}(%{{.*}}cl::sycl::stream{{.*}} addrspace(4)* %{{[0-9]+}})
77
//
88

9-
#include "sycl.hpp"
9+
#include "Inputs/sycl.hpp"
1010

1111
int main() {
1212
cl::sycl::queue Q;

clang/test/CodeGenSYCL/struct_kernel_param.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -o %t.out
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -o %t.out
22
// RUN: FileCheck -input-file=%t.h %s
33

44
// CHECK: const kernel_param_desc_t kernel_signatures[] = {
@@ -15,7 +15,7 @@
1515

1616
// This test checks if compiler accepts structures as kernel parameters.
1717

18-
#include "sycl.hpp"
18+
#include "Inputs/sycl.hpp"
1919

2020
using namespace cl::sycl;
2121

clang/test/CodeGenSYCL/template-template-parameter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsycl-int-header=%t.h %s
22
// RUN: FileCheck -input-file=%t.h %s
33

4-
#include <sycl.hpp>
4+
#include "Inputs/sycl.hpp"
55

66
using namespace cl::sycl;
77

clang/test/CodeGenSYCL/union-kernel-param-ih.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -o %t.out
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -fsycl-int-header=%t.h %s -o %t.out
22
// RUN: FileCheck -input-file=%t.h %s
33

44
// This test checks the integration header generated when

clang/test/CodeGenSYCL/union-kernel-param.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clang_cc1 -fsycl -fsycl-is-device -I %S/Inputs -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
22

33
// This test checks a kernel argument that is union with both array and non-array fields.
44

5-
#include "sycl.hpp"
5+
#include "Inputs/sycl.hpp"
66

77
using namespace cl::sycl;
88

0 commit comments

Comments
 (0)