[Mlir-commits] [mlir] ad1a9d6 - [mlir][tosa] Enable tosa.div for TosaMakeBroadcastable

Rob Suderman llvmlistbot at llvm.org
Mon Jun 21 16:19:06 PDT 2021


Author: Rob Suderman
Date: 2021-06-21T16:12:11-07:00
New Revision: ad1a9d629b759f43c8c1ea5d4c710c5c5b4b1e6b

URL: https://github.com/llvm/llvm-project/commit/ad1a9d629b759f43c8c1ea5d4c710c5c5b4b1e6b
DIFF: https://github.com/llvm/llvm-project/commit/ad1a9d629b759f43c8c1ea5d4c710c5c5b4b1e6b.diff

LOG: [mlir][tosa] Enable tosa.div for TosaMakeBroadcastable

TosaMakeBroadcastable needs to include tosa.div, which was added later in the
specification.

Reviewed By: sjarus, NatashaKnk

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

Added: 
    

Modified: 
    mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
index e2e19c2d0d1e..60bc6357eb3c 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
@@ -257,6 +257,7 @@ struct TosaMakeBroadcastable
     patterns.add<ConvertTosaOp<tosa::AddOp>>(ctx);
     patterns.add<ConvertTosaOp<tosa::SubOp>>(ctx);
     patterns.add<ConvertTosaOp<tosa::MulOp>>(ctx);
+    patterns.add<ConvertTosaOp<tosa::DivOp>>(ctx);
     patterns.add<ConvertTosaOp<tosa::MaximumOp>>(ctx);
     patterns.add<ConvertTosaOp<tosa::MinimumOp>>(ctx);
     patterns.add<ConvertTosaOp<tosa::EqualOp>>(ctx);


        


More information about the Mlir-commits mailing list