[clang] [OpenACC] Implement 'reduction' sema for compute constructs (PR #92808)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon May 20 12:29:43 PDT 2024


================
@@ -130,5 +130,33 @@ void foo() {
 //CHECK: #pragma acc parallel device_type(SomeStructImpl)
 #pragma acc parallel device_type (SomeStructImpl)
   while(true);
+
+//CHECK: #pragma acc parallel reduction(+: iPtr)
+#pragma acc parallel reduction(+: iPtr)
----------------
erichkeane wrote:

AST print tests are here

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


More information about the cfe-commits mailing list