[LLVMdev] Re: MRegisterInfo::storeRegToStackSlot question
ghost at cs.msu.su
Sun May 14 23:20:38 PDT 2006
Chris Lattner wrote:
> On Sat, 13 May 2006, Vladimir Prus wrote:
>> in LLVM CVS the afore-mentioned function has 'const TargetRegisterClass*'
>> parameter, that is not documented.
>> Can somebody explain what does it mean?
> Basically, it gives the target more information about the spill. In
> particular, it specifies the register class to use for the copy.
I'm still missing something. The 'storeRegToStackSlot' saves
'SrcReg' (already specified) to stack (which is not a register). So, what
does this register class applies to?
Examining RegAllocLocal.cpp suggests that the argument actually specifies
the register class of the spilled virtual register. Can you give some
examples how that information can be helpful?
I'd like to send doc patch, but can't do that without understanding the
More information about the llvm-dev