[LLVMdev] Question about calling convention implementation in LLVM target

Jim Grosbach grosbach at apple.com
Wed May 14 17:09:14 PDT 2014


In theory, the SPAdj (stack pointer adjustment) tracking in PEI could be used to support something like this. That’s not how it’s used right now and it might get more than a little interesting implementing that, though.

-Jim

On May 14, 2014, at 4:05 AM, Rodolphe Suescun <rsu.medal at dolphin.fr> wrote:

> Hi,
> 
> We are currently developing an LLVM target for a micro-controller,
> and would like our TargetLowering::LowerCall method to emit
> PUSH instructions (instead of STORE) to pass arguments (which
> would improve code density for function calls).
> 
> Is there a way of keeping track of the stack pointer changes
> implied by the PUSH instruction to calculate the correct
> offsets in RegisterInfo::eliminateFrameIndex when the call
> sequence is generated ?
> 
> Thanks a lot in advance,
> Rod
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list