Skip to content

Commit af0b0c9

Browse files
committed
Corrections to temporarily disable tests expected to fail.
1 parent 00c082f commit af0b0c9

9 files changed

+13
-0
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,11 +786,16 @@ static void VisitField(CXXRecordDecl *Owner, RangeTy &&Item, QualType ItemTy,
786786
KF_FOR_EACH(handleSyclAccessorType, Item, ItemTy);
787787
else if (Util::isSyclStreamType(ItemTy))
788788
KF_FOR_EACH(handleSyclStreamType, Item, ItemTy);
789+
else if (Util::isSyclSamplerType(ItemTy))
790+
KF_FOR_EACH(handleSyclSamplerType, Item, ItemTy);
789791
else if (ItemTy->isStructureOrClassType())
790792
VisitAccessorWrapper(Owner, Item, ItemTy->getAsCXXRecordDecl(),
791793
handlers...);
794+
#if 0
795+
// FIXME Enable this when structs are replaced by their fields
792796
else if (ItemTy->isArrayType())
793797
VisitArrayElements(Item, ItemTy, handlers...);
798+
#endif
794799
}
795800

796801
template <typename RangeTy, typename... Handlers>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %clang -I %S/Inputs -fsycl-device-only -Xclang -fsycl-int-header=%t.h %s -c -o %T/kernel.spv
22
// RUN: FileCheck -input-file=%t.h %s
3+
// XFAIL: *
34

45
// This test checks the integration header generated when
56
// the kernel argument is an Accessor array.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// 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+
// XFAIL: *
23

34
// This test checks a kernel argument that is an Accessor array
45

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %clang -I %S/Inputs -fsycl-device-only -Xclang -fsycl-int-header=%t.h %s -c -o %T/kernel.spv
22
// RUN: FileCheck -input-file=%t.h %s
3+
// XFAIL: *
34

45
// This test checks the integration header when kernel argument
56
// is a struct containing an Accessor array.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// 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
2+
// XFAIL: *
23

34
// This test checks a kernel with struct parameter that contains an Accessor array.
45

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %clang -I %S/Inputs -fsycl-device-only -Xclang -fsycl-int-header=%t.h %s -c -o %T/kernel.spv
22
// RUN: FileCheck -input-file=%t.h %s
3+
// XFAIL: *
34

45
// This test checks the integration header generated for a kernel
56
// with an argument that is a POD array.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// 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+
// XFAIL: *
23

34
// This test checks a kernel with an argument that is a POD array.
45

clang/test/SemaSYCL/array-kernel-param.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_cc1 -I %S/Inputs -fsycl -fsycl-is-device -ast-dump %s | FileCheck %s
2+
// XFAIL: *
23

34
// This test checks that compiler generates correct kernel arguments for
45
// arrays, Accessor arrays, and structs containing Accessors.

sycl/test/array_param/array-kernel-param-run.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// RUN: %CPU_RUN_PLACEHOLDER %t.out
66
// RUN: %GPU_RUN_PLACEHOLDER %t.out
77
// RUN: %ACC_RUN_PLACEHOLDER %t.out
8+
// XFAIL: *
89

910
#include <CL/sycl.hpp>
1011
#include <iostream>

0 commit comments

Comments
 (0)