Skip to content

Commit 791b890

Browse files
committedOct 17, 2023
[HIP][Clang][CodeGen] Simplify test for hipstdpar
Fixes build failures for cases where there's no additional visibility / linkage spec. Differential Revision: https://reviews.llvm.org/D155850
1 parent b2773d1 commit 791b890

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎clang/test/CodeGenHipStdPar/unannotated-functions-get-emitted.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
#define __device__ __attribute__((device))
88

9-
// NO-HIPSTDPAR-DEV-NOT: define {{.*}} void @foo({{.*}})
10-
// HIPSTDPAR-DEV: define {{.*}} void @foo({{.*}})
9+
// NO-HIPSTDPAR-DEV-NOT: {{.*}}void @foo({{.*}})
10+
// HIPSTDPAR-DEV: {{.*}}void @foo({{.*}})
1111
extern "C" void foo(float *a, float b) {
1212
*a = b;
1313
}
1414

15-
// NO-HIPSTDPAR-DEV: define {{.*}} void @bar({{.*}})
16-
// HIPSTDPAR-DEV: define {{.*}} void @bar({{.*}})
15+
// NO-HIPSTDPAR-DEV: {{.*}}void @bar({{.*}})
16+
// HIPSTDPAR-DEV: {{.*}}void @bar({{.*}})
1717
extern "C" __device__ void bar(float *a, float b) {
1818
*a = b;
1919
}

0 commit comments

Comments
 (0)
Please sign in to comment.