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

Dale Johannesen dalej at apple.com
Thu Oct 28 10:39:58 PDT 2010


On Oct 28, 2010, at 3:23 AMPDT, Erik de Castro Lopo wrote:

> 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.

Spelling it right should help, sorry:  PPCDAGToDAGISel::Select is in llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp





More information about the llvm-dev mailing list