From 5cf549e6b1a572f5be5a575ffb878bb927ba81b3 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 24 Feb 2023 17:37:05 -0700 Subject: [PATCH] Add info about the "testing only" aspect of `--allow-unregistered-dialect` in the cl::opt desc (NFC) --- mlir/lib/Tools/mlir-opt/MlirOptMain.cpp | 2 +- mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp b/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp index 94d9a24..60b5a42 100644 --- a/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp +++ b/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp @@ -240,7 +240,7 @@ LogicalResult mlir::MlirOptMain(int argc, char **argv, llvm::StringRef toolName, static cl::opt 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 showDialects( "show-dialects", cl::desc("Print the list of registered dialects"), diff --git a/mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp b/mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp index 5e460ed..8fc3abe 100644 --- a/mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp +++ b/mlir/lib/Tools/mlir-translate/MlirTranslateMain.cpp @@ -39,7 +39,7 @@ LogicalResult mlir::mlirTranslateMain(int argc, char **argv, static llvm::cl::opt 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 splitInputFile( -- 2.7.4