[Mlir-commits] [flang] [mlir] [WIP] Delayed privatization. (PR #79862)
Kareem Ergawy
llvmlistbot at llvm.org
Fri Feb 2 07:24:10 PST 2024
================
@@ -0,0 +1,38 @@
+// RUN: fir-opt -verify-diagnostics %s | fir-opt | FileCheck %s
+
+// CHECK-LABEL: _QPprivate_clause
+func.func @_QPprivate_clause() {
+ %0 = fir.alloca i32 {bindc_name = "x", uniq_name = "_QFprivate_clause_allocatableEx"}
+ %1 = fir.alloca i32 {bindc_name = "y", uniq_name = "_QFprivate_clause_allocatableEy"}
+
+ // CHECK: omp.parallel private(@x.privatizer %0 -> %arg0, @y.privatizer %1 -> %arg1 : !fir.ref<i32>, !fir.ref<i32>)
+ omp.parallel private(@x.privatizer %0 -> %arg0, @y.privatizer %1 -> %arg1 : !fir.ref<i32>, !fir.ref<i32>) {
----------------
ergawy wrote:
Done. Unfortunately(?), I had to refactor `createBodyOfOp` a bit to do that. I hope the approach I took is sane enough :).
To see the current status of the whole pipeline, there is a file with an example `delayed_privatization.f90` in the PR. I will convert that file to a number of lit tests once the approach is settled.
https://github.com/llvm/llvm-project/pull/79862
More information about the Mlir-commits
mailing list