The fixed-to-integer pass did not have support for arith.select operation that has fixed-point type operands and results. This PR added supports for this case.
New test case
Added an IR test case here:
hcl-dialect/test/Transforms/datatype/fixedpoint.mlir
MLIR verifier would throw an error message, but I also added a validation step after each function is lowered to throw error for any unsupported operations just to provide more information
Summary
The
fixed-to-integer
pass did not have support forarith.select
operation that has fixed-point type operands and results. This PR added supports for this case.New test case
Added an IR test case here:
hcl-dialect/test/Transforms/datatype/fixedpoint.mlir
This is a fixed-point ReLU operation. I will add the same test in frontend test suite.