updateCallOp should update the result types of a func.call operation if any of the result type is a fixed point type memref or scalar.
This PR updates the type update judgement logic, from implementing the function's own to using the shared utility function convertFixedMemRefOrScalarToInt.
Test added
After this PR, the FixedToInteger pass should be able to pass functions with scalar return types, such as:
Description
updateCallOp
should update the result types of afunc.call
operation if any of the result type is a fixed point type memref or scalar.This PR updates the type update judgement logic, from implementing the function's own to using the shared utility function
convertFixedMemRefOrScalarToInt
.Test added
After this PR, the FixedToInteger pass should be able to pass functions with scalar return types, such as:
This test is added to
test/Transforms/datatype/fixedpoint.mlir