[mlir][tosa] Added folders for tosa.div
authorRob Suderman <suderman@google.com>
Mon, 29 Aug 2022 23:46:48 +0000 (16:46 -0700)
committerRob Suderman <suderman@google.com>
Tue, 30 Aug 2022 00:02:43 +0000 (17:02 -0700)
commita48f910d7cd4dc12194c65afb2a51b7a50292f75
treec0ffa94c1c09d3c365f65ba6215a6690e2c0f4d6
parent7bc182ed8abbd37726b96b32d3420d2fab7ea26a
[mlir][tosa] Added folders for tosa.div

Added folders for tosa.sub that handles bypassing divide by one,
and a zero numerator.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D132693
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
mlir/test/Dialect/Tosa/constant-op-fold.mlir