tarunprabhu wrote: > I think the appropriate core MLIR dialects are those that most closely > reflect the original FIR representation. Do you have any suggestions on how > to approach this?
I am not exactly clear on what sort of suggestions you are looking for. I haven't thought a lot about this either, so here are just my initial thoughts: One could have some standard "sets" of dialects that could be chosen. This may be similar to the various optimization levels available, -O3 for maximum performance, -Os to optimize for size etc. Each "set" may have its own strengths - maybe some enable better optimizations for certain codes. Others may contain information that is useful for more sophisticated tooling, rather than standard compilation. This may allow us to defer development of a truly flexible approach until we have a better sense of what is useful. As someone who works in a research lab, having the ability to experiment with lowering using the various MLIR dialects sounds great. However, there is a tension between that and the requirements for a production-quality compiler and the ability to maintain this code. Apologies if this is obvious, but I am just trying to provide some broader context for the concerns/interests of folks in the community. Does that help at all? https://github.com/llvm/llvm-project/pull/139857 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits