[Mlir-commits] [mlir] [MLIR][OpenMP] Add omp.loop_nest operation (PR #87083)

Sergio Afonso llvmlistbot at llvm.org
Tue Apr 2 06:06:03 PDT 2024


================
@@ -133,6 +133,85 @@ func.func @omp_parallel_pretty(%data_var : memref<i32>, %if_cond : i1, %num_thre
   return
 }
 
+// CHECK-LABEL: omp_loop_nest
+func.func @omp_loop_nest(%lb : index, %ub : index, %step : index) -> () {
+  // TODO Remove induction variables from omp.wsloop.
+  omp.wsloop for (%iv) : index = (%lb) to (%ub) step (%step) {
----------------
skatrak wrote:

Yes, this is true. However, the transition of `omp.wsloop` to be a wrapper rather than defining the whole loop will be part of a separate patch. So, after this patch alone, it's not expected to use `omp.loop_nest` inside of `omp.wsloop`. These tests just needed to add a "future-wrapper" parent operation so that the new op verifier could be tested.

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


More information about the Mlir-commits mailing list