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

Kiran Chandramohan llvmlistbot at llvm.org
Wed Jan 31 04:54:45 PST 2024


kiranchandramohan wrote:

> Thinking about it a bit more, it would be possible to make some sort of 2-level representation system for composite constructs. The first level would be to just represent each allowed composite construct as its own MLIR operation, which is what the frontend would produce. Then, there would be an OpenMP dialect MLIR pass to split them up according to their semantics.

I think the representation of composite constructs in the dialect would be necessary. Whether we can split in the MLIR layer without inserting runtime calls, I am not 100% sure. If we have to insert runtime calls then that has to be delayed till we interface with OpenMPIRBuilder. Also, the existing lowering of worksharing-loops in the OpenMPIRBuilder/Translation might already be forming the inner loops. So this might not directly apply. We also have other transformations like collapse that can affect the structure of the loop.





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


More information about the Mlir-commits mailing list