[llvm-branch-commits] [flang] [flang] Introduce ws loop nest generation for HLFIR lowering (PR #101445)

Ivan R. Ivanov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 31 19:37:43 PDT 2024


ivanradanov wrote:

I am debating introducing a new operation workshare_loop_container which exists only to "contain" a omp.loop_nest between lowering an elemental to lowering the omp.workshare it is contained in.

so we would have this state:

```
omp.workshare {
  omp.workshare_loop_container {
    omp.loop_nest {}
  }
}
```

```
omp.workshare {
  omp.wsloop {
    omp.loop_nest {}
  }
}
```

Which may have come from a different lowering/codegen and we are not sure what the semantics of that code would be.

This new operation can later be reused for the `workdistribute` lowering as well.

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


More information about the llvm-branch-commits mailing list