Interface to extract registered Operations of a Dialect


Looking in accessing the registered operators of a dialect and extracting some information out of them (canonicalization patterns in my case). Noticed the ability to access the registered ops at MLIRContext level but not in the context of a single dialect.
Are you aware of a way in achieving this? If not, is this something that you deem “good-to-have” to contribute?
Thank you in advance.

I also needed this and ended up with the inefficient solution to filter the list of all registered operations using the dialect pointer. So +1 on having this.

Great to know @ftynse. Will have a go and try to add this functionality. Thanks for you prompt response btw

+1 - same here in some prior work

+1, seems fine to add.