[Mlir-commits] [mlir] [mlir] Method to iterate over registered operations for a given dialect class. (PR #112344)
Rajveer Singh Bharadwaj
llvmlistbot at llvm.org
Wed Oct 16 03:26:44 PDT 2024
================
@@ -188,7 +188,11 @@ class MLIRContextImpl {
/// This is a sorted container of registered operations for a deterministic
/// and efficient `getRegisteredOperations` implementation.
- SmallVector<RegisteredOperationName, 0> sortedRegisteredOperations;
+ SmallVector<std::pair<StringRef, RegisteredOperationName>, 0>
----------------
Rajveer100 wrote:
We need the `StringRef`, as with the current logic we need the bounds, i.e, `(startIndex, endIndex)` and while the `lower_bound` part can be handled for placing it the right place, retrieval would require another container since we wouldn't know where to start.
https://github.com/llvm/llvm-project/pull/112344
More information about the Mlir-commits
mailing list