[Mlir-commits] [mlir] [OpenMP][MLIR] Add omp.distribute op to the OMP dialect (PR #67720)
Jan Leyonberg
llvmlistbot at llvm.org
Mon Nov 6 07:04:45 PST 2023
jsjodin wrote:
> Since distribute is always specified on a loop, it might be good to retain that relation in the IR. You could do the following. Here the `omp.canonical_loop` is either the loop to which the distribute construct is applied in the source or could be one that is generated after a loop transformation construct.
>
> ```
> omp.distribute {parallel do simd} {
> omp.canonical_loop {
> }
> }
> ```
I'm wondering if it will be difficult to represent the various clauses that could be added to the different directives if we use this representation? I am also wondering if there is additional ops other than omp.canonical_loop, then it may still require some traversal of the code.
https://github.com/llvm/llvm-project/pull/67720
More information about the Mlir-commits
mailing list