[LLVMdev] LLVM on 64-bit PowerPC Linux

Eli Friedman eli.friedman at gmail.com
Fri Jul 3 13:47:25 PDT 2009

On Fri, Jul 3, 2009 at 7:29 AM, Gary Benson<gbenson at redhat.com> wrote:
> I'm trying to use LLVM on a 64-bit PowerPC Linux box.  This platform
> has a weird way of dealing with function pointers which I don't think
> LLVM has support for.  Can anyone point me in the right direction so
> I can start implementing it?

You can support lowering a call any way you want for your target by
custom-lowering the CALL instruction in CodeGen.  The relevant code is
PPCTargetLowering::LowerCALL in
llvm/lib/Target/PowerPC/PPCISelLowering.cpp.  I'd suggest starting
there, and asking if there's anything you can't figure out.


More information about the llvm-dev mailing list