[LLVMdev] Callee saved register, almost

Vladimir Prus ghost at cs.msu.su
Thu Jul 8 07:04:00 PDT 2004


Vladimir Prus wrote:
> I've another problem. There's one register, gr6, which is used to return
> high part of return value for functions returning 64-bit values. For such
> functions, the register should not be saved, naturally.
>
> But when function does not return 64-bit value, then the register must be
> saved. How can I express this in .td file?

Ok, I've managed to do what I what by not marking the register as callee 
saved, and saving it manually in prologue/epilogue generation code.

- Volodya




More information about the llvm-dev mailing list