[Mlir-commits] [mlir] [MLIR][OpenMP] Extend omp.private materialization support: `firstprivate` (PR #82164)

Kiran Chandramohan llvmlistbot at llvm.org
Sun Mar 3 13:35:00 PST 2024


================
@@ -1176,17 +1176,38 @@ convertOmpParallel(omp::ParallelOp opInst, llvm::IRBuilderBase &builder,
     }();
 
     if (privVar) {
+      Region &allocRegion = privatizerClone.getAllocRegion();
+
+      // If this is a `firstprivate` clause, prepare the `omp.private` op by:
----------------
kiranchandramohan wrote:

Not sure whether this approach of moving the copy to the alloca region might be sufficient when we have last private and types with deallocate regions. I guess we will cross the bridge when we reach there.

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


More information about the Mlir-commits mailing list