[LLVMdev] Destination of callee saved register

Vikram Singh vsp1729 at gmail.com
Mon Jul 29 02:55:23 PDT 2013

In sparc ABI the arguments are saved by the callee in the caller stack
Q. What to do to save them in callee stack frame itself.

for example by default this is generated

sti r2, -2(fp)
sti r3, -3(fp)                                

Instead how to generate

sti r2, 4(fp)
sti r3, 5(fp)

The Indices are just for explanation. The matter is In sparc they are -ive
which means in the caller stack frame. But I
want to save them in the callee stack frame.
PS : If i try to add r2, r3, ..etc to CalleSavedRegister() then llvm saves
the arguments in both callee and caller stack frame!

Help me


View this message in context: http://llvm.1065342.n5.nabble.com/Destination-of-callee-saved-register-tp59901.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.

More information about the llvm-dev mailing list