[PATCH] D79946: [mlir] Adopt changes in mlir-opt to standalone example
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 14 10:51:50 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG426afd79da70: [mlir] Adopt changes in mlir-opt to standalone example (authored by marbre, committed by mehdi_amini).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79946/new/
https://reviews.llvm.org/D79946
Files:
mlir/examples/standalone/standalone-opt/standalone-opt.cpp
Index: mlir/examples/standalone/standalone-opt/standalone-opt.cpp
===================================================================
--- mlir/examples/standalone/standalone-opt/standalone-opt.cpp
+++ mlir/examples/standalone/standalone-opt/standalone-opt.cpp
@@ -73,8 +73,8 @@
llvm::cl::ParseCommandLineOptions(argc, argv,
"MLIR modular optimizer driver\n");
- mlir::MLIRContext context;
if (showDialects) {
+ mlir::MLIRContext context;
llvm::outs() << "Registered Dialects:\n";
for (mlir::Dialect *dialect : context.getRegisteredDialects()) {
llvm::outs() << dialect->getNamespace() << "\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79946.264032.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200514/1831b78d/attachment.bin>
More information about the llvm-commits
mailing list