[LLVMdev] Virtual Register allocation across functions

Evan Cheng evan.cheng at apple.com
Mon Oct 20 14:02:42 PDT 2008

No, there isn't something like that right now. What are you trying to  

If you wish to implement this, it shouldn't be hard to do. Right now,  
MachineRegisterInfo re-starts virtual register number at  
TargetRegisterInfo::FirstVirtualRegister. You can add a mechanism to  
change that to a variable instead.


On Oct 20, 2008, at 1:43 PM, Villmow, Micah wrote:

> Is there currently a way to have virtual register allocation  
> information be saved across functions so that if I create a new  
> virtual register in a function that it doesn’t use a virtual  
> register allocated in any previous function?
> Thanks,
> Micah Villmow
> Systems Engineer
> Advanced Technology & Performance
> Advanced Micro Devices Inc.
> 4555 Great America Pkwy,
> Santa Clara, CA. 95054
> P: 408-572-6219
> F: 408-572-6596
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081020/2a81d501/attachment.html>

More information about the llvm-dev mailing list