Having this function in a public scope is helpful to register dialects that are
defined at runtime, and thus that need a runtime-defined TypeID.
Also, a similar function in DialectRegistry, insert(TypeID, StringRef, ...), has
a public scope.
Differential D95091
[mlir] Make MLIRContext::getOrLoadDialect(StringRef, TypeID, ...) public math-fehr on Jan 20 2021, 2:15 PM. Authored by
Details Having this function in a public scope is helpful to register dialects that are Also, a similar function in DialectRegistry, insert(TypeID, StringRef, ...), has
Diff Detail
Event Timeline
Comment Actions Add comment explaining that the use of the method is discouraged for most of the cases. |
Can you document that the use of this method is discouraged in favor of getOrLoadDialect<DialectClass>() ?