[Mlir-commits] [flang] [mlir] [mlir] Support DialectRegistry extension comparison (PR #101119)
River Riddle
llvmlistbot at llvm.org
Thu Aug 1 10:17:39 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;
----------------
River707 wrote:
You can't use a DenseMap here, that will make iteration order non-deterministic, this could be a MapVector though (which still gives you random access via the begin() iterator).
https://github.com/llvm/llvm-project/pull/101119
More information about the Mlir-commits
mailing list