[PATCH] D79946: [mlir] Adopt changes in mlir-opt to standalone example

Marius Brehler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 14 08:38:30 PDT 2020


marbre created this revision.
marbre added a reviewer: rriddle.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, frgossen, grosul1, Joonsoo, stephenneuendorffer, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, mehdi_amini.
Herald added a project: LLVM.
marbre added a reviewer: antiagainst.

MLIRContext was moved with commit 6bce7d8 <https://reviews.llvm.org/rG6bce7d8d67c497306dc1c28ae5328e6a4c6efdab>


Repository:
  rG LLVM Github Monorepo

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.264004.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200514/80150fe8/attachment.bin>


More information about the llvm-commits mailing list