[Mlir-commits] [mlir] 4fe5543 - [mlir] Address compiler warning (NFC)
Jacques Pienaar
llvmlistbot at llvm.org
Mon Dec 20 09:33:47 PST 2021
Author: Jacques Pienaar
Date: 2021-12-20T09:33:30-08:00
New Revision: 4fe5543b3c3e9662b0adf4f10b2d18dcd5ceb2d7
URL: https://github.com/llvm/llvm-project/commit/4fe5543b3c3e9662b0adf4f10b2d18dcd5ceb2d7
DIFF: https://github.com/llvm/llvm-project/commit/4fe5543b3c3e9662b0adf4f10b2d18dcd5ceb2d7.diff
LOG: [mlir] Address compiler warning (NFC)
Mark overridden virtual function.
Added:
Modified:
mlir/lib/Dialect/Tosa/Transforms/TosaOptimization.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaOptimization.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaOptimization.cpp
index 61b1618f68dad..e0ed33bbe692a 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaOptimization.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaOptimization.cpp
@@ -39,7 +39,7 @@ struct Conv2DIsFullyConnected : public OpRewritePattern<tosa::Conv2DOp> {
: OpRewritePattern(context) {}
LogicalResult matchAndRewrite(tosa::Conv2DOp op,
- PatternRewriter &rewriter) const {
+ PatternRewriter &rewriter) const override {
Value input = op.input();
Value weight = op.weight();
ShapedType inputType = input.getType().cast<ShapedType>();
@@ -126,7 +126,7 @@ struct DepthwiseConv2DIsMul : public OpRewritePattern<tosa::DepthwiseConv2DOp> {
: OpRewritePattern(context) {}
LogicalResult matchAndRewrite(tosa::DepthwiseConv2DOp op,
- PatternRewriter &rewriter) const {
+ PatternRewriter &rewriter) const override {
Value input = op.input();
Value weight = op.weight();
ShapedType inputType = input.getType().cast<ShapedType>();
More information about the Mlir-commits
mailing list