diff --git a/README.md b/README.md index 704f3bb2c..6c5f04c89 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ export LDFLAGS=-fuse-ld=$(which ld.lld-$LLVM_VERSION) export LLVM_SRC_DIR=/path/to/llvm-project # Check out last known good commit. -(cd $LLVM_SRC_DIR && git checkout 3af85fa8f06220b43f03f26de216a67be4568fe7) +(cd $LLVM_SRC_DIR && git checkout 310d32cb80a611e6384a921e85607fea05841f26) ./tools/install_mlir.sh ./tools/cmake_configure.sh diff --git a/lib/E2E/E2E.cpp b/lib/E2E/E2E.cpp index 90a9dfbf1..9ec7dd153 100644 --- a/lib/E2E/E2E.cpp +++ b/lib/E2E/E2E.cpp @@ -44,7 +44,6 @@ #include "mlir/Dialect/Linalg/IR/LinalgOps.h" #include "mlir/Dialect/Linalg/IR/LinalgTypes.h" -#include "mlir/Dialect/LoopOps/LoopOps.h" #include "mlir/Dialect/Shape/IR/Shape.h" #include "mlir/Dialect/StandardOps/IR/Ops.h" #include "mlir/Pass/Pass.h" diff --git a/lib/E2E/LowerToHybridTensorMemRef.cpp b/lib/E2E/LowerToHybridTensorMemRef.cpp index 0c4ec96ae..117982832 100644 --- a/lib/E2E/LowerToHybridTensorMemRef.cpp +++ b/lib/E2E/LowerToHybridTensorMemRef.cpp @@ -11,7 +11,7 @@ #include "mlir/Dialect/Linalg/IR/LinalgOps.h" #include "mlir/Dialect/Linalg/IR/LinalgTypes.h" -#include "mlir/Dialect/LoopOps/LoopOps.h" +#include "mlir/Dialect/SCF/SCF.h" #include "mlir/Dialect/Shape/IR/Shape.h" #include "mlir/Dialect/StandardOps/IR/Ops.h" #include "mlir/Pass/Pass.h" @@ -86,7 +86,7 @@ public: // Loop invariant: At the start of iteration `i`, the rewriter insertion // point is inside `i` nested loops. for (int i = 0, e = resultType.getRank(); i < e; i++) { - auto loop = rewriter.create( + auto loop = rewriter.create( op.getLoc(), c0, outputExtents[i], c1, ValueRange({})); Block *body = loop.getBody(); inductionVariables.push_back(body->getArgument(0)); @@ -139,7 +139,7 @@ class LowerBroadcastToToLoops ConversionTarget target(*context); target.addLegalDialect(); target.addLegalDialect(); - target.addLegalDialect(); + target.addLegalDialect(); target.addLegalDialect(); OwningRewritePatternList patterns;