Skip to content

Commit f5126d2

Browse files
authored
[SYCL][CUDA] Fix sycl-cuda-host-device-functions on Windows (#7939)
This solves #7352 (comment).
1 parent 982fda3 commit f5126d2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

clang/test/CodeGenSYCL/sycl-cuda-host-device-functions.cu

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,55 +15,55 @@
1515
__host__ int fun0() { return 0; }
1616
__device__ int fun0();
1717

18-
// CHECK-HOST: define dso_local noundef i32 @_Z4fun0v()
18+
// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun0{{.*}}()
1919
// CHECK-HOST: ret i32 0
2020

21-
// CHECK-DEV: declare noundef i32 @_Z4fun0v()
21+
// CHECK-DEV: declare{{ dso_local | }}noundef i32 @{{.*}}fun0{{.*}}()
2222

2323
__device__ int fun1() { return 1; }
2424
__host__ int fun1() { return 2; }
2525

26-
// CHECK-HOST: define dso_local noundef i32 @_Z4fun1v()
26+
// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun1{{.*}}()
2727
// CHECK-HOST: ret i32 2
2828

29-
// CHECK-DEV: define weak_odr noundef i32 @_Z4fun1v()
29+
// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun1{{.*}}()
3030
// CHECK-DEV: ret i32 1
3131

3232
__host__ __device__ int fun2() { return 3; }
3333

34-
// CHECK-HOST: define dso_local noundef i32 @_Z4fun2v()
34+
// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun2{{.*}}()
3535
// CHECK-HOST: ret i32 3
3636

37-
// CHECK-DEV: define weak_odr noundef i32 @_Z4fun2v()
37+
// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun2{{.*}}()
3838
// CHECK-DEV: ret i32 3
3939

4040
__host__ int fun3() { return 4; }
4141

42-
// CHECK-HOST: define dso_local noundef i32 @_Z4fun3v()
42+
// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun3{{.*}}()
4343
// CHECK-HOST: ret i32 4
4444

45-
// CHECK-DEV: define weak_odr noundef i32 @_Z4fun3v()
45+
// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun3{{.*}}()
4646
// CHECK-DEV: ret i32 4
4747

4848
__device__ int fun4() { return 6; }
4949
__host__ int fun4();
5050

51-
// CHECK-HOST: declare noundef i32 @_Z4fun4v()
51+
// CHECK-HOST: declare{{ dso_local | }}noundef i32 @{{.*}}fun4{{.*}}()
5252

53-
// CHECK-DEV: define weak_odr noundef i32 @_Z4fun4v()
53+
// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun4{{.*}}()
5454
// CHECK-DEV: ret i32 6
5555

5656
__device__ int fun5() { return 5; }
5757

58-
// CHECK-HOST: define dso_local noundef i32 @_Z4fun5v()
58+
// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun5{{.*}}()
5959
// CHECK-HOST: ret i32 undef
6060

61-
// CHECK-DEV: define weak_odr noundef i32 @_Z4fun5v()
61+
// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun5{{.*}}()
6262
// CHECK-DEV: ret i32 5
6363

6464
int fun6() { return 7; }
6565

66-
// CHECK-DEV: define dso_local noundef i32 @_Z4fun6v()
66+
// CHECK-DEV: define dso_local noundef i32 @{{.*}}fun6{{.*}}()
6767
// CHECK-DEV: ret i32 7
6868

6969
__attribute((sycl_device)) void test() {

0 commit comments

Comments
 (0)