[LLVMdev] Saving registers used by function

Vladimir Prus ghost at cs.msu.su
Wed Jun 9 04:59:00 PDT 2004


Hello!
Is there an (semi)automatic way to save registers used by a function? For 
example, on my target I have to store ar0-ar4 and gr0-gr4, gr5, gr6. For now 
I just emit huge prologue code to push them all to stack -- even if they are 
not modified at all.

Is there a way to tell LLVM which registers must be stored, and have it 
automatically issue pushes/pops? I can live with current design, just 
wondering.

- Volodya




More information about the llvm-dev mailing list