[LLVMdev] Supporting pre-allocated registers in LLVM

Evan Cheng evan.cheng at apple.com
Mon Oct 8 10:59:04 PDT 2007


I think it's called "explicit register variables":
http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Explicit-Reg-Vars.html#Explicit%20Reg%20Vars

Like I said, that's not currently implemented. If you want it, I'm  
afraid you will have to contribute patches to get it implemented. :-)

Evan

On Oct 8, 2007, at 3:44 AM, nkavv at physics.auth.gr wrote:

>>
>> You are thinking about the gcc extension which allows the programer
>> to tie a register to global variable? This feature isn't implemented
>> nor am I aware of anyone driving to get it to implemented. Looks like
>> you will have to roll up your sleeves if that's what you want. :-)
>>
>> Evan
>
> Hi Evan
>
> is this the -fixed-reg<num> feature, or something that has been  
> introduced
> lately (in gcc4)?
>
> This feature would be useful, with minimal changes to the  
> application source
> code and could achieve the behavior i want for binding the global  
> variable to
> the register. I could live with this feature, and not something more  
> complex,
> i.e. associating temporaries to hard registers (pre-coloring) right  
> after
> instruction selection via a pass.
>
>
> Nikolaos Kavvadias
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list