diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2023-03-06 18:09:51 +0100 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2023-03-08 01:17:51 +0100 |
commit | 7de0804ea3290e5e43ce38567b4056a34ccad551 (patch) | |
tree | 9b7494d04835a046b78de7936e268a2178905353 /mlir/lib | |
parent | 9d311dd6a71ba3910554b81fec5e6d5799ce0453 (diff) | |
download | llvm-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.cpp | 4 |
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 ®istry, 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"; } |