summaryrefslogtreecommitdiff
path: root/mlir/lib
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2023-03-06 18:09:51 +0100
committerMehdi Amini <joker.eph@gmail.com>2023-03-08 01:17:51 +0100
commit7de0804ea3290e5e43ce38567b4056a34ccad551 (patch)
tree9b7494d04835a046b78de7936e268a2178905353 /mlir/lib
parent9d311dd6a71ba3910554b81fec5e6d5799ce0453 (diff)
downloadllvm-7de0804ea3290e5e43ce38567b4056a34ccad551.tar.gz
Make mlir-opt --show-dialects option print on a single line
Differential Revision: https://reviews.llvm.org/D145398
Diffstat (limited to 'mlir/lib')
-rw-r--r--mlir/lib/Tools/mlir-opt/MlirOptMain.cpp4
1 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 fb4fbee54142..d1c56375e3fd 100644
--- a/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
+++ b/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
@@ -238,8 +238,8 @@ LogicalResult mlir::MlirOptMain(llvm::raw_ostream &outputStream,
DialectRegistry &registry,
const MlirOptMainConfig &config) {
if (config.shouldShowDialects()) {
- llvm::outs() << "Available Dialects:\n";
- interleave(registry.getDialectNames(), llvm::outs(), "\n");
+ llvm::outs() << "Available Dialects: ";
+ interleave(registry.getDialectNames(), llvm::outs(), ",");
llvm::outs() << "\n";
}