File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,8 @@ class MLIRContextImpl {
214
214
215
215
// / This is a mapping from type name to the abstract type describing it.
216
216
// / It is used by `AbstractType::lookup` to get an `AbstractType` from a name.
217
+ // / As this map needs to be populated before `StringAttr` is loaded, we
218
+ // / cannot use `StringAttr` as the key, which would avoid string duplication.
217
219
llvm::StringMap<AbstractType *> nameToType;
218
220
219
221
// / Cached Type Instances.
@@ -243,6 +245,8 @@ class MLIRContextImpl {
243
245
// / This is a mapping from attribute name to the abstract attribute describing
244
246
// / it. It is used by `AbstractType::lookup` to get an `AbstractType` from a
245
247
// / name.
248
+ // / As this map needs to be populated before `StringAttr` is loaded, we
249
+ // / cannot use `StringAttr` as the key, which would avoid string duplication.
246
250
llvm::StringMap<AbstractAttribute *> nameToAttribute;
247
251
248
252
// / Cached Attribute Instances.
You can’t perform that action at this time.
0 commit comments