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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 20 11:56:57 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
----------------
NimishMishra wrote:

Intentional comment?

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


More information about the Mlir-commits mailing list