[LLVMdev] Increasing TargetRegisterInfo::FirstVirtualRegister?

ether zhhb etherzhhb at gmail.com
Thu Jan 6 23:19:53 PST 2011


hi andrew,


On Fri, Jan 7, 2011 at 2:39 PM,  <andrew at sidefx.com> wrote:
>
>> If you're interested in doing this, I'd suggest hacking up the backend to
>> not run register allocation, and represent all your "physical" registers
>> are virtual registers.  This gives you an unlimited number.
>>
>
> Yes it would be ideal to use all virtual registers, but a glance at the
> code seemed to indicate the the use of physical registers, spilling, etc.
you can override the function "addPassesToEmitFile" of your target
machine, so register allocator will not run on your machinefunctions.

best regards
ether




More information about the llvm-dev mailing list