[Mlir-commits] [mlir] [mlir] Method to iterate over registered operations for a given dialect class. (PR #112344)

Mehdi Amini llvmlistbot at llvm.org
Tue Oct 15 16:06:32 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>
----------------
joker-eph wrote:

I don't follow why we need this StringRef here. The dialect name is already available from the RegisteredOperationName, isn't it?

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


More information about the Mlir-commits mailing list