[PATCH] D79727: [flang] Fix for compilation problems caused by D79578

Pete Steinfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 11 10:11:57 PDT 2020


PeteSteinfeld created this revision.
PeteSteinfeld added reviewers: ftynse, antiagainst, schweitz.
Herald added subscribers: llvm-commits, stephenneuendorffer, aartbik, rriddle.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
PeteSteinfeld added a project: Flang.
Herald added a reviewer: jdoerfert.

D79578 <https://reviews.llvm.org/D79578> changed the name of an mlir namespace from "loop" to "scf" and also changed the name of one of its members.  This change allows flang to build without errors and pass all tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79727

Files:
  flang/include/flang/Optimizer/Dialect/FIRDialect.h


Index: flang/include/flang/Optimizer/Dialect/FIRDialect.h
===================================================================
--- flang/include/flang/Optimizer/Dialect/FIRDialect.h
+++ flang/include/flang/Optimizer/Dialect/FIRDialect.h
@@ -38,7 +38,7 @@
   [[maybe_unused]] static bool init_once = [] {
     mlir::registerDialect<mlir::AffineDialect>();
     mlir::registerDialect<mlir::LLVM::LLVMDialect>();
-    mlir::registerDialect<mlir::loop::LoopOpsDialect>();
+    mlir::registerDialect<mlir::scf::SCFDialect>();
     mlir::registerDialect<mlir::StandardOpsDialect>();
     mlir::registerDialect<mlir::vector::VectorDialect>();
     mlir::registerDialect<FIROpsDialect>();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79727.263207.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200511/eca23fa6/attachment.bin>


More information about the llvm-commits mailing list