[mlir][tosa] Add apply scale flags to TosaToArith creation API
authorDiego Caballero <diegocaballero@google.com>
Thu, 8 Sep 2022 20:11:37 +0000 (20:11 +0000)
committerDiego Caballero <diegocaballero@google.com>
Thu, 8 Sep 2022 20:11:47 +0000 (20:11 +0000)
commitb9cfb6f7e082b57d8a1c5fc577dd357da60238db
tree2d0a2f216b77f8699c1225b9062a1448e3cd868c
parentdc46d5c979101e73fd61c1b6de942e17a2e8e480
[mlir][tosa] Add apply scale flags to TosaToArith creation API

TosaToArith has two flags to enable/disable 'tosa.apply_scale' ops and
to use a 64-bit/32-bit implementation for it. This patch makes the flags
available from the pass creation API.

Reviewed By: rsuderman

Differential Revision: https://reviews.llvm.org/D133515
mlir/include/mlir/Conversion/TosaToArith/TosaToArith.h
mlir/lib/Conversion/TosaToArith/TosaToArithPass.cpp