[LLVMdev] PowerPC : Assertion `MovePCtoLROffset & & " MovePCtoLR not seen yet?" ' failed.

Erik de Castro Lopo mle+cl at mega-nerd.com
Thu Oct 28 03:23:06 PDT 2010


Dale Johannesen wrote:

> I'm not working on it, but I might be able to help find the problem.
> What this means is that you're generating code in PIC mode, and an
> object that requires a PIC register to reference is being addressed,
> and no PIC register was allocated.   The allocation was supposed to
> happen in PPCDAGtoDAGISel::Select when the reference was processed,
> and a MovePCtoLR instruction inserted at that time.  Somebody can
> probably figure it out by stepping through that.

I'm an LLVM user, not and LLVM dev.

I've read the above and and get the basic idea, but I can't find
PPCDAGtoDAGISel::Select anywhere in the sources.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the llvm-dev mailing list