[llvm-commits] Segmented stacks, current status.

Frits van Bommel fvbommel at gmail.com
Thu Jun 30 10:20:40 PDT 2011


2011/6/30 Sanjoy Das <sanjoy at playingwithpointers.com>:
>> but the function then looks for a callee saved register that is not live
>> in. Can we be sure that one is always available? Looking at gold (if you
>> plan to use it for linking segmented and non segmented code), it looks
>> like it assumes r10 or r11 is used.
>
> I've changed the code to use R10 as the scratch register.

R10 is used for 'nest' parameters, so IIUC it can be live-in. (See
lib/Target/X86/X86CallingConv.td)
R11 is probably a better choice.



More information about the llvm-commits mailing list