Updating MSP430 calling convention

Anton Korobeynikov via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 12:36:26 PDT 2015


Anna,

Will you please upload the patch to http://reviews.llvm.org/ and put
me as a reviewer?

Thanks!

On Wed, Oct 14, 2015 at 6:34 PM, Youssefi, Anna via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Dear LLVM Folks,
>
> Attached please find a patch for the MSP430 LLVM target.  This is my first
> patch submission and I will be continuing to work on bringing the MSP LLVM
> target to working condition.  MSP430-GCC has updated its calling convention.
> In addition to the LLVM lit target tests, these changes have been tested by
> assembling, linking and running tests with the current MSP430-GCC framework.
>
> This patch contains the following changes to update the MSP430 calling
> convention to conform to MSP430 EABI:
>
> 1)      Pass args in R12-R15
>
> 2)      Return args in R12-R15
>
> 3)      Store on stack and pass in registers starting with least significant
> word
>
> 4)      32-bit argument may be split between register (R15) and stack if no
> args placed on stack yet
>
> 5)      Register ‘holes’ may be back-filled (but only by arguments that fit
> entirely in regs, no split args once first arg placed on stack)
>
> 6)      Only R4 through R10 are callee-saved registers; R11 is updated to be
> caller-save
>
> I have attempted to follow the Developer’s Policy.  Please let me know if
> anything is lacking.
>
> Thank you,
>
> Anna Youssefi
>
> Texas Instruments, Codegen
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>



-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University


More information about the llvm-commits mailing list