[LLVMdev] [PATCH] Spill Comments

David Greene dag at cray.com
Mon Sep 14 12:34:11 PDT 2009


On Monday 14 September 2009 12:52, Dan Gohman wrote:

> > Are MachineMemOperands available at AsmPrinter time?  Where are they
> > stashed?
>
> Yes. There are some places where they aren't preserved, but otherwise
> they stick around for the entire CodeGen process. The places that
> don't preserve them should ideally be fixed eventually.
>
> They're available via the memoperands_begin()/memoperands_end()
> MachineInstr member functions.

Ok.  Since I'm using a variant of isLoadFromStackSlot to figure things out,
should we consider rewriting that function to look at memoperands rather
than operands?

Eventually, I mean, not part of this patch.

                           -Dave



More information about the llvm-dev mailing list