[clang] [flang] [Flang][FIR] Introduce FIRToCoreMLIR pass. (PR #168703)

Ming Yan via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 25 18:35:55 PST 2026


NexMing wrote:

> @NexMing Have you taken any steps towards evaluating this?

Hi, I have been busy with other tasks recently and haven’t had time to work on this. I previously submitted a PR #172808 with an initial implementation of this feature, but it does not yet handle the conversion from fir.declare to fir.declare_value. I think it should be similar to the implementation of llvm.dbg.declare to llvm.dbg.value, and it shouldn’t be too difficult.

In my investigation, it is better to convert from [HL]FIR to core MLIR as early as possible, because it can preserve more high-level information. Therefore, I agree with @jeanPerier point of view.

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


More information about the cfe-commits mailing list