[RFC] Proposed interplay of Clang & Flang & LLVM wrt. OpenMP [@Flang-dev]

We are in the beginning in F18/flang as you mentioned. I agree that it would be great if we have a common code generator for the frontends. However, I am not seeing any intersecting between the internals of clang and flang that we can rely on to implement “OpenMP-IRBuilder”.

This would be great if the RFC is elaborated.



The intersection is OpenMP. The directives are almost identical. Trying to create the same IR in two places, as it has to work with a single runtime, will be a hustle.

I guess this email was sent before I added implementation possibilities. I can add more details if you let me know on what.