[mlir][tosa] Add tosa.div integer lowering to linalg.generic.
authornatashaknk <natashaknk@google.com>
Thu, 13 May 2021 20:15:57 +0000 (13:15 -0700)
committerRob Suderman <rob.suderman@gmail.com>
Thu, 13 May 2021 20:16:00 +0000 (13:16 -0700)
commit0831793ed962105b51057c02df413abef4767e7c
tree79e51793c620c1d7b1f7cf5445b4d42c60a9a528
parent12874e93a15219ccfaff42a0536b2b5368c6f304
[mlir][tosa] Add tosa.div integer lowering to linalg.generic.

Lowering div elementwise op to the linalg dialect. Since tosa only supports integer division, that is the only version that is currently implemented.

Reviewed By: rsuderman

Differential Revision: https://reviews.llvm.org/D102430
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir