[flang] Fix compilation after rename of Loop dialect to scf
authorValentin Clement <clementval@gmail.com>
Mon, 11 May 2020 17:13:58 +0000 (13:13 -0400)
committerclementval <clementval@gmail.com>
Mon, 11 May 2020 17:15:33 +0000 (13:15 -0400)
Summary: Flang was not compiling correctly after the renaming of Loop dialect to SCF. This patch fixes the problem.

Reviewers: ftynse, DavidTruby

Reviewed By: ftynse

Subscribers: aartbik, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79723

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

index 92fd23b..963dad8 100644 (file)
@@ -38,7 +38,7 @@ inline void registerFIR() {
   [[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>();