commit | 06266424888d655399ec6ecdc830223534361f37 | [log] [tgz] |
---|---|---|
author | Sergio Afonso <safonsof@amd.com> | Mon Apr 15 10:33:54 2024 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 15 02:40:53 2024 -0700 |
tree | faab84439db0d01015470c59f2b38bbea87ac7a7 | |
parent | c393d11020a361261e65d922dfdc75e7514f5b3a [diff] |
[MLIR][OpenMP] Introduce the LoopWrapperInterface (#87232) This patch defines a common interface to be shared by all OpenMP loop wrapper operations. The main restrictions these operations must meet in order to be considered a wrapper are: - They contain a single region. - Their region contains a single block. - Their block only contains another loop wrapper or `omp.loop_nest` and a terminator. The new interface is attached to the `omp.parallel`, `omp.wsloop`, `omp.simdloop`, `omp.distribute` and `omp.taskloop` operations. It is not currently enforced that these operations meet the wrapper restrictions, which would break existing OpenMP loop-generating code. Rather, this will be introduced progressively in subsequent patches. GitOrigin-RevId: f2923e31b64907df44ae641114228ad6e283627f
See https://mlir.llvm.org/ for more information.