Skip to content

Commit

Permalink
[MLIR][doc] Clarify allowUnregisteredDialects() as "testing option"…
Browse files Browse the repository at this point in the history
… (NFC)

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D144615
  • Loading branch information
joker-eph committed Feb 25, 2023
1 parent bcb8a94 commit a85ea9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mlir/include/mlir/IR/MLIRContext.h
Expand Up @@ -132,6 +132,10 @@ class MLIRContext {
bool allowsUnregisteredDialects();

/// Enables creating operations in unregistered dialects.
/// This option is **heavily discouraged**: it is convenient during testing
/// but it is not a good practice to use it in production code. Some system
/// invariants can be broken (like loading a dialect after creating
/// operations) without being caught by assertions or other means.
void allowUnregisteredDialects(bool allow = true);

/// Return true if multi-threading is enabled by the context.
Expand Down

0 comments on commit a85ea9a

Please sign in to comment.