We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
allowUnregisteredDialects()
1 parent bcb8a94 commit a85ea9aCopy full SHA for a85ea9a
mlir/include/mlir/IR/MLIRContext.h
@@ -132,6 +132,10 @@ class MLIRContext {
132
bool allowsUnregisteredDialects();
133
134
/// Enables creating operations in unregistered dialects.
135
+ /// This option is **heavily discouraged**: it is convenient during testing
136
+ /// but it is not a good practice to use it in production code. Some system
137
+ /// invariants can be broken (like loading a dialect after creating
138
+ /// operations) without being caught by assertions or other means.
139
void allowUnregisteredDialects(bool allow = true);
140
141
/// Return true if multi-threading is enabled by the context.
0 commit comments