On 9/18/23 13:45, Vineet Gupta wrote:


For the cases which do require sign extends, but not being eliminated due to "missing definition(s)" I'm working on adapting Ajit's REE ABI interfaces work [2] to work for RISC-V as well.
I wonder if we could walk the DECL_ARGUMENTS for current_function_decl and create sign extensions for integer arguments smaller than XLEN at the start of the function. Record them in a list.

Then we just let the rest of REE do its thing. When REE is done we go back and delete those sign extensions we created.

Assuming that works, then we just need to conditionalize the code on ABI properties.



Jeff

Reply via email to