-stablehlo-legalize-to-tosa

Legalize StableHLO to TOSA

-stablehlo-prepare-for-tosa

Prepare StableHLO for legalization to TOSA

This pass adds rewriters to make StableHLO ops more compatible with TOSA ops. Currently simplifies stablehlo.dot_general into stablehlo.dot for easier lowering.

-stablehlo-quant-legalize-to-tosa-rescale

Legalize StableHLO Quantized operations to TOSA rescale operations

This pass rewrites StableHLO quantized operations to integer operations by inserting TOSA rescale operations at the inputs and outputs of the integer operations.

-tosa-rescale-legalize-to-stablehlo

Legalize TOSA rescales to StableHlo primitive math operations

This pass rewrites TOSA rescale operations to StableHLO primitive math operations.