[Mlir-commits] [mlir] [mlir][EmitC] Refactor MLIR Translate To Cpp (PR #84973)

Weizhe Chen llvmlistbot at llvm.org
Wed Mar 13 06:35:28 PDT 2024


weizchen wrote:

> As I understand the current design of emitc, it's intended that the translator will only accept the emitc dialect, and other dialects are instead supposed to convert into emitc before translation.
> 
> Your PR wants to move away from that design, correct?

Hi, thank you for your comment. I also thought about this before but I think not necessarily, I would not say this PR will conflict with the current design of emitc. 

Although in this PR, dialects like func getting separated out seems like we want to do direct translation to cpp, but as emitc func gets more functionality, we could still remove func and only use emitc. I think this will be more useful as people aim for a more customized cpp translation in the future.

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


More information about the Mlir-commits mailing list