[LLVMdev] [PATCH] Spill Comments
David Greene
dag at cray.com
Mon Sep 14 13:28:24 PDT 2009
On Monday 14 September 2009 13:07, Dan Gohman wrote:
> MachineMemOperands for spill slots use FixedStack PseudoSourceValues
> as their base. There's a unique FixedStack PseudoSourceValue for each
> fixed frame object, so it's independent of whether frame pointer
> elimination has been done, and it's independent of the actual frame
> offsets.
>From MachineMemOperand.h:
/// getValue - Return the base address of the memory access.
/// Special values are PseudoSourceValue::FPRel, PseudoSourceValue::SPRel,
/// and the other PseudoSourceValue members which indicate references to
/// frame/stack pointer relative references and other special references.
const Value *getValue() const { return V; }
I don't see PseudoSourceValue::FPRel, etc. defined anywhere. How do I know
if a PseudoSourceValue is from the stack?
-Dave
More information about the llvm-dev
mailing list