Add info about the "testing only" aspect of `--allow-unregistered-dialect` in the...
authorMehdi Amini <joker.eph@gmail.com>
Sat, 25 Feb 2023 00:37:05 +0000 (17:37 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 25 Feb 2023 00:37:05 +0000 (17:37 -0700)
mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp

index 94d9a24..60b5a42 100644 (file)
@@ -240,7 +240,7 @@ LogicalResult mlir::MlirOptMain(int argc, char **argv, llvm::StringRef toolName,
 
   static cl::opt<bool> allowUnregisteredDialects(
       "allow-unregistered-dialect",
-      cl::desc("Allow operation with no registered dialects"), cl::init(false));
+      cl::desc("Allow operation with no registered dialects (discouraged: testing only!)"), cl::init(false));
 
   static cl::opt<bool> showDialects(
       "show-dialects", cl::desc("Print the list of registered dialects"),
index 5e460ed..8fc3abe 100644 (file)
@@ -39,7 +39,7 @@ LogicalResult mlir::mlirTranslateMain(int argc, char **argv,
 
   static llvm::cl::opt<bool> allowUnregisteredDialects(
       "allow-unregistered-dialect",
-      llvm::cl::desc("Allow operation with no registered dialects"),
+      llvm::cl::desc("Allow operation with no registered dialects (discouraged: testing only!)"),
       llvm::cl::init(false));
 
   static llvm::cl::opt<bool> splitInputFile(