[LLVMdev] problem with function arguments in ARM EABI

Lauro Ramos Venancio lauro.venancio at gmail.com
Fri Feb 9 13:57:41 PST 2007


>
> Yes, you need to override both LowerArguments and LowerCallTo. All of
> the current targets / abi's use the default implementation in
> SelectionDAGISel.cpp But I guess ARM EABI will be the first. :-) As
> far as I can see, this is the only clean way to do it.  I expect the
> ARM EABI specific implementation will be quite a bit simpler than the
> default implementation though.
>

If I override these functions, I would copy a lot of code and change
only few lines. I found another solution: adding two items to
arguments Flags. Flags[27:24] = number of pieces that an argument was
expanded. Flags[31:28] = sequential piece ID.

What do you think? May I add these items?

Lauro



More information about the llvm-dev mailing list