[llvm-commits] Lowering of ISD::FRAME_TO_ARGS_OFFSET for Mips backend

Akira Hatanaka ahatanak at gmail.com
Tue Oct 30 19:18:35 PDT 2012


Is it possible to do a custom-lowering like this

(add (FRAMEADDR 0), (FRAME_TO_ARGS_OFFSET)) => (add FrameObject, 0)

during legalization?

FrameObject is a fixed StackObject with offset 0 which points to the old
stack pointer.

I think this approach is simpler than expanding post-RA. It also takes care
of the case when other architectures (mips64 and mips16) are targeted.


On Tue, Oct 30, 2012 at 9:52 AM, Sasa Stankovic <Sasa.Stankovic at rt-rk.com>wrote:

> Hi all,
>
> The attached patch implements ISD::FRAME_TO_ARGS_OFFSET lowering for Mips
> backend (offset of the arguments area from the frame pointer). This is
> needed for intrinsic llvm.eh.dwarf.cfa, which is calculated as
>   ISD::FRAMEADDR + ISD::FRAME_TO_ARGS_OFFSET
>
> Regards,
> Sasa
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121030/b963e120/attachment.html>


More information about the llvm-commits mailing list