Skip to content

Commit b6e0cfc

Browse files
committed
Add documentation that got removed
1 parent 4ba4e77 commit b6e0cfc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/lib/IR/MLIRContext.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ class MLIRContextImpl {
213213
StorageUniquer typeUniquer;
214214

215215
/// This is a mapping from type name to the abstract type describing it.
216+
/// It is used by `AbstractType::lookup` to get an `AbstractType` from a name.
216217
llvm::StringMap<AbstractType *> nameToType;
217218

218219
/// Cached Type Instances.
@@ -240,7 +241,8 @@ class MLIRContextImpl {
240241
StorageUniquer attributeUniquer;
241242

242243
/// This is a mapping from attribute name to the abstract attribute describing
243-
/// it.
244+
/// it. It is used by `AbstractType::lookup` to get an `AbstractType` from a
245+
/// name.
244246
llvm::StringMap<AbstractAttribute *> nameToAttribute;
245247

246248
/// Cached Attribute Instances.

0 commit comments

Comments
 (0)