================
@@ -77,24 +112,60 @@ void lambda_master(int a, int b) {
 #pragma omp master
     {
       // ALL: call i32 @__kmpc_master(
+      // CIR-LABEL: cir.func{{.*}} @_ZZ13lambda_masteriiENK{{.*}}clEv(
+      // CIR: omp.parallel {
+      // CIR-NEXT: omp.master {
+      // CIR-NEXT: [[C_ADDR:%.*]] = cir.alloca "c"
+      // CIR: [[SUM:%.*]] = cir.add nsw
+      // CIR-NEXT: cir.store align(4) [[SUM]], [[C_ADDR]]
+      // CIR-NEXT: omp.terminator
+      // CIR-NEXT: }
+      // CIR-NEXT: omp.terminator
+      // CIR-NEXT: }
       int c = a + b;
     }
   };
 
   l1();
 
+#ifndef CIR_TEST
----------------
skadewdl3 wrote:

I had added it to temporarily disable testing the combined parallel-master 
directive, but I forgot to add codegen for it before requesting a review 😓

I've added codegen for `OMPParallelMasterDirective` and updated the test.

https://github.com/llvm/llvm-project/pull/238260
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to