[flang-commits] [flang] [mlir] [mlir] Support DialectRegistry extension comparison (PR #101119)

Nikhil Kalra via flang-commits flang-commits at lists.llvm.org
Thu Aug 1 12:19:07 PDT 2024


================
@@ -255,7 +256,9 @@ class DialectRegistry {
 
 private:
   MapTy registry;
-  std::vector<std::unique_ptr<DialectExtensionBase>> extensions;
+  using KeyExtensionPair =
+      std::pair<TypeID, std::unique_ptr<DialectExtensionBase>>;
+  llvm::SmallVector<KeyExtensionPair> extensions;
----------------
nikalra wrote:

Ah, I didn't realize iteration order was important. Switched to MapVector!

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


More information about the flang-commits mailing list