[Mlir-commits] [mlir] [mlir] add MlirOptMain config callback for context configuration (PR #68228)

Ingo Müller llvmlistbot at llvm.org
Thu Oct 5 05:49:21 PDT 2023


https://github.com/ingomueller-net commented:

I can't comment on the `OptMain`/context registration discussion.

Being able to load transform libraries into the dialect is an interesting idea. Let's spell out why and when we need this and why and when doing it in the interpreter pass or as a "loading pass" isn't enough. I imagine that we get rid of repeatedly parsing the same library in case we have several passes with the same context (but we still need to do the name resolution/module merging every time). Maybe it can also be useful to have some "first-class sequences" in the dialect-level library (which form sort of a "standard library" that is almost part of the dialect) and some more user-specific libraries in the passes. Do you have anything else in mind?

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


More information about the Mlir-commits mailing list