Skip to content

Commit 5cf549e

Browse files
committed
Add info about the "testing only" aspect of --allow-unregistered-dialect in the cl::opt desc (NFC)
1 parent a85ea9a commit 5cf549e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/lib/Tools/mlir-opt/MlirOptMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ LogicalResult mlir::MlirOptMain(int argc, char **argv, llvm::StringRef toolName,
240240

241241
static cl::opt<bool> allowUnregisteredDialects(
242242
"allow-unregistered-dialect",
243-
cl::desc("Allow operation with no registered dialects"), cl::init(false));
243+
cl::desc("Allow operation with no registered dialects (discouraged: testing only!)"), cl::init(false));
244244

245245
static cl::opt<bool> showDialects(
246246
"show-dialects", cl::desc("Print the list of registered dialects"),

mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ LogicalResult mlir::mlirTranslateMain(int argc, char **argv,
3939

4040
static llvm::cl::opt<bool> allowUnregisteredDialects(
4141
"allow-unregistered-dialect",
42-
llvm::cl::desc("Allow operation with no registered dialects"),
42+
llvm::cl::desc("Allow operation with no registered dialects (discouraged: testing only!)"),
4343
llvm::cl::init(false));
4444

4545
static llvm::cl::opt<bool> splitInputFile(

0 commit comments

Comments
 (0)