Skip to content

Commit 29a97c9

Browse files
committed
Fix clang and sycl tests after merge.
1 parent 7d74a47 commit 29a97c9

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

clang/test/CodeGenSYCL/check-direct-attribute-propagation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,20 +304,20 @@ int main() {
304304

305305
// Test attribute is not propagated.
306306
// CHECK: define {{.*}}spir_kernel void @{{.*}}kernel_name32() #0 !kernel_arg_buffer_location ![[NUM]]
307-
// CHECK: define {{.*}}spir_func void @{{.*}}Functor10{{.*}}(%class._ZTS9Functor10.Functor10 addrspace(4)* align 1 dereferenceable_or_null(1) %this) #3 comdat align 2
307+
// CHECK: define {{.*}}spir_func void @{{.*}}Functor10{{.*}}(%class.Functor10 addrspace(4)* align 1 dereferenceable_or_null(1) %this) #3 comdat align 2
308308
// CHECK-NOT: noalias
309309
// CHECK-SAME: {
310310
// CHECK: define dso_local spir_func void @_Z4foo8v()
311311
Functor10 f10;
312312
h.single_task<class kernel_name32>(f10);
313313

314314
// CHECK: define {{.*}}spir_kernel void @{{.*}}kernel_name33() #0 !kernel_arg_buffer_location ![[NUM]]
315-
// CHECK: define {{.*}}spir_func void @{{.*}}Foo8{{.*}}(%class.{{.*}}Foo8.Foo8 addrspace(4)* noalias align 1 dereferenceable_or_null(1) %this) #3 comdat align 2
315+
// CHECK: define {{.*}}spir_func void @{{.*}}Foo8{{.*}}(%class.Foo8 addrspace(4)* noalias align 1 dereferenceable_or_null(1) %this) #3 comdat align 2
316316
Foo8 boo8;
317317
h.single_task<class kernel_name33>(boo8);
318318

319319
// CHECK: define {{.*}}spir_kernel void @{{.*}}kernel_name34() #0 !kernel_arg_buffer_location ![[NUM]]
320-
// CHECK: define {{.*}}spir_func void @{{.*}}(%class.{{.*}}.anon addrspace(4)* noalias align 1 dereferenceable_or_null(1) %this) #4 align 2
320+
// CHECK: define {{.*}}spir_func void @{{.*}}(%class.anon{{.*}} addrspace(4)* noalias align 1 dereferenceable_or_null(1) %this) #4 align 2
321321
h.single_task<class kernel_name34>(
322322
[]() [[intel::kernel_args_restrict]]{});
323323
});

clang/test/CodeGenSYCL/stall_enable_device.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,11 @@ int main() {
4343
h.single_task<class test_kernel3>(
4444
[]() { func(); });
4545

46-
<<<<<<< HEAD
47-
// CHECK: define {{.*}}spir_kernel void @{{.*}}test_kernel4() #0 !kernel_arg_buffer_location ![[NUM4]]
48-
// CHECK: define {{.*}}spir_func void @{{.*}}test1vENKUlvE_clEv(%class.anon{{.*}} addrspace(4)* align 1 dereferenceable_or_null(1) %this) #4 align 2 !stall_enable ![[NUM5]]
49-
=======
5046
// Test attribute is not propagated to the kernel metadata i.e. spir_kernel.
5147
// CHECK: define {{.*}}spir_kernel void @{{.*}}test_kernel4()
5248
// CHECK-NOT: !stall_enable
5349
// CHECK-SAME: {
54-
// CHECK: define {{.*}}spir_func void @{{.*}}func1{{.*}}(%class.{{.*}}func1{{.*}}.anon addrspace(4)* align 1 dereferenceable_or_null(1) %this) #4 align 2 !stall_enable ![[NUM4]]
55-
>>>>>>> intel/sycl
50+
// CHECK: define {{.*}}spir_func void @{{.*}}func1{{.*}}(%class.anon{{.*}} addrspace(4)* align 1 dereferenceable_or_null(1) %this) #4 align 2 !stall_enable ![[NUM4]]
5651
h.single_task<class test_kernel4>(
5752
[]() { func1(); });
5853

llvm/lib/SYCLLowerIR/LowerESIMD.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,9 +1359,10 @@ SmallPtrSet<Type *, 4> collectGenXVolatileTypes(Module &M) {
13591359
assert(GTy->getNumContainedTypes() == 1);
13601360
auto VTy = GTy->getContainedType(0);
13611361
if ((GTy = dyn_cast<StructType>(VTy))) {
1362-
assert(
1363-
GTy->getName().endswith(
1364-
"sycl::ext::intel::experimental::esimd::detail::simd_obj_impl"));
1362+
assert(GTy->getName()
1363+
.rtrim(".0123456789")
1364+
.endswith("sycl::ext::intel::experimental::esimd::detail::"
1365+
"simd_obj_impl"));
13651366
VTy = GTy->getContainedType(0);
13661367
}
13671368
assert(VTy->isVectorTy());

sycl/test/check_device_code/kernel_arguments_as.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
//
66
// Check the address space of the pointer in accessor class.
77
//
8-
// CHECK: %struct.AccWrapper = type { %"class.cl::sycl::accessor" }
9-
// CHECK: %"class{{.*}}cl::sycl::accessor" = type { %"class{{.*}}AccessorImplDevice", %[[UNION:.*]] }
8+
// CHECK: %struct.AccWrapper = type { %"class.cl::sycl::accessor.1" }
9+
// CHECK: %"class.cl::sycl::accessor.1" = type { %"class{{.*}}AccessorImplDevice", %[[UNION:.*]] }
1010
// CHECK-DISABLE: %[[UNION]] = type { i32 addrspace(1)* }
1111
// CHECK-ENABLE: %[[UNION]] = type { i32 addrspace(5)* }
12-
// CHECK: %struct.AccWrapper.1 = type { %"class.cl::sycl::accessor.2" }
13-
// CHECK-NEXT: %"class.cl::sycl::accessor.2" = type { %"class{{.*}}LocalAccessorBaseDevice", i32 addrspace(3)* }
12+
// CHECK: %struct.AccWrapper.4 = type { %"class.cl::sycl::accessor.5" }
13+
// CHECK-NEXT: %"class.cl::sycl::accessor.5" = type { %"class{{.*}}LocalAccessorBaseDevice", i32 addrspace(3)* }
1414
//
1515
// Check that kernel arguments doesn't have generic address space.
1616
//

0 commit comments

Comments
 (0)