Skip to content

Commit

Permalink
[HIP][Clang][CodeGen] Simplify test for hipstdpar
Browse files Browse the repository at this point in the history
Fixes build failures for cases where there's no additional visibility / linkage spec.

Differential Revision: https://reviews.llvm.org/D155850
  • Loading branch information
AlexVlx committed Oct 17, 2023
1 parent b2773d1 commit 791b890
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 791b890

Please sign in to comment.