[PATCH] D79723: [flang] Fix compilation after rename of Loop dialect to scf
Valentin Clement via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 11 09:39:57 PDT 2020
clementval created this revision.
clementval added a reviewer: ftynse.
Herald added subscribers: llvm-commits, aartbik.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Flang was not compiling correctly after the renaming of Loop dialect to SCF. This patch fixes the problem.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79723
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: D79723.263190.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200511/73c34599/attachment.bin>
More information about the llvm-commits
mailing list