[Mlir-commits] [mlir] [MLIR][OpenMP] Support basic materialization for `omp.private` ops (PR #81715)

Kareem Ergawy llvmlistbot at llvm.org
Tue Feb 20 20:58:29 PST 2024


================
@@ -0,0 +1,21 @@
+// Test code-gen for `omp.parallel` ops with delayed privatizers (i.e. using
+// `omp.private` ops).
+
+// RUN: mlir-translate -mlir-to-llvmir -split-input-file %s | FileCheck %s
+
+llvm.func @parallel_op_1_private(%arg0: !llvm.ptr) {
+  omp.parallel private(@x.privatizer %arg0 -> %arg2 : !llvm.ptr) {
+//    %0 = llvm.load %arg2 : !llvm.ptr -> f32
----------------
ergawy wrote:

Same, debugging and experimentation left-over. See my comment.

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


More information about the Mlir-commits mailing list