Skip to content

[mlir] Add MLIRContext::getDialectOperations(Dialect&) or equiv #111591

@stellaraccident

Description

@stellaraccident

See: https://discourse.llvm.org/t/callback-to-iterate-over-all-dialect-op-classes/82417/3

We would likely be ok adding a little bit of extra accounting to keep track of the subrange of dialect ops in the sorted list of all operations for each dialect.

This would simplify things iterating over the subset of RegisteredOperationName that belong to a dialect (such as getting canonicalization patterns).

Metadata

Metadata

Assignees

Labels

good first issuehttps://github.com/llvm/llvm-project/contributemlir:coreMLIR Core Infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions