[PATCH] D79884: [mlir][Linalg] Fix missing template keyword.
Mahesh Ravishankar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 10:18:24 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG902777ded5c0: [mlir][Linalg] Fix missing template keyword. (authored by mravishankar).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79884/new/
https://reviews.llvm.org/D79884
Files:
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
Index: mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
===================================================================
--- mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -296,8 +296,7 @@
using OpRewritePattern<ReshapeOpTy>::OpRewritePattern;
LogicalResult matchAndRewrite(ReshapeOpTy reshapeOp,
PatternRewriter &rewriter) const override {
- auto srcReshapeOp =
- dyn_cast_or_null<ReshapeOpTy>(reshapeOp.src().getDefiningOp());
+ auto srcReshapeOp = reshapeOp.src().template getDefiningOp<ReshapeOpTy>();
if (!srcReshapeOp)
return failure();
@@ -340,7 +339,7 @@
// producer is same as the return type of the consumer. This can only be
// verified if the shapes in question are static.
ReshapeOpTy reshapeSrcOp =
- dyn_cast_or_null<ReshapeOpTy>(reshapeOp.src().getDefiningOp());
+ reshapeOp.src().template getDefiningOp<ReshapeOpTy>();
if (reshapeSrcOp && reshapeSrcOp.getSrcType().hasStaticShape() &&
reshapeOp.getResultType().hasStaticShape() &&
reshapeSrcOp.getSrcType() == reshapeOp.getResultType())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79884.263771.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/3906eded/attachment.bin>
More information about the llvm-commits
mailing list