[Mlir-commits] [mlir] [OpenMP Dialect] Add omp.canonical_loop operation. (PR #65380)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Sep 7 07:50:23 PDT 2023


kiranchandramohan wrote:

> Would the omp.canonical_loop, omp.tile etc live throughout the compilation, or would they be lowered early on in HLFIR/FIR? I am a suspicious that if these are present in the IR when running various MLIR transforms things could easily go wrong. Would it be possible to discover just the canonical loops late if they are needed for codegen going from MLIR->LLVM-IR?

They will live through the entire flow and be lowered by the OpenMP IRBuilder. The OpenMP IRBuilder already supports lowering of canonical loops and some transforms on it. We already use it for collapse and simd.

If you could elaborate on the issues you suspect that would be great.

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


More information about the Mlir-commits mailing list