[clang] 791b890 - [HIP][Clang][CodeGen] Simplify test for `hipstdpar`
Alex Voicu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 17 07:42:36 PDT 2023
Author: Alex Voicu
Date: 2023-10-17T15:42:28+01:00
New Revision: 791b890c468e5784113507f1f2fe7fed694c3962
URL: https://github.com/llvm/llvm-project/commit/791b890c468e5784113507f1f2fe7fed694c3962
DIFF: https://github.com/llvm/llvm-project/commit/791b890c468e5784113507f1f2fe7fed694c3962.diff
LOG: [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
Added:
Modified:
clang/test/CodeGenHipStdPar/unannotated-functions-get-emitted.cpp
Removed:
################################################################################
diff --git a/clang/test/CodeGenHipStdPar/unannotated-functions-get-emitted.cpp b/clang/test/CodeGenHipStdPar/unannotated-functions-get-emitted.cpp
index 1fa37ea6c342ff7..dfd6b3da0a291b1 100644
--- a/clang/test/CodeGenHipStdPar/unannotated-functions-get-emitted.cpp
+++ b/clang/test/CodeGenHipStdPar/unannotated-functions-get-emitted.cpp
@@ -6,14 +6,14 @@
#define __device__ __attribute__((device))
-// NO-HIPSTDPAR-DEV-NOT: define {{.*}} void @foo({{.*}})
-// HIPSTDPAR-DEV: define {{.*}} void @foo({{.*}})
+// NO-HIPSTDPAR-DEV-NOT: {{.*}}void @foo({{.*}})
+// HIPSTDPAR-DEV: {{.*}}void @foo({{.*}})
extern "C" void foo(float *a, float b) {
*a = b;
}
-// NO-HIPSTDPAR-DEV: define {{.*}} void @bar({{.*}})
-// HIPSTDPAR-DEV: define {{.*}} void @bar({{.*}})
+// NO-HIPSTDPAR-DEV: {{.*}}void @bar({{.*}})
+// HIPSTDPAR-DEV: {{.*}}void @bar({{.*}})
extern "C" __device__ void bar(float *a, float b) {
*a = b;
}
More information about the cfe-commits
mailing list