[clang] [OpenACC] Implement Atomic construct variants (PR #73015)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 09:41:46 PST 2023


================
@@ -94,6 +94,37 @@ void func() {
 #pragma acc kernels loop
   for(;;){}
 
+  int i = 0, j = 0, k = 0;
+  // expected-error at +2{{missing OpenACC 'atomic-clause'; expected 'read', 'write', 'update', or 'capture'}}
+  // expected-warning at +1{{OpenACC directives not yet implemented, pragma ignored}}
+#pragma acc atomic
----------------
erichkeane wrote:

Ah!  I'd not caught that on my read through the standard.  Thanks!

https://github.com/llvm/llvm-project/pull/73015


More information about the cfe-commits mailing list