[LLVMdev] Implementing llvm.memory.barrier on PowerPC

Bill Wendling isanbard at gmail.com
Fri Jul 25 06:28:43 PDT 2008


Hi Gary,

You're probably missing the required recipe in the .td file. Look at  
the documentation for tablegen and maybe try to find some examples to  
copy.

Good luck!

-bw

On Jul 25, 2008, at 5:57 AM, Gary Benson <gbenson at redhat.com> wrote:

> Hi all,
>
> I want to implement llvm.memory.barrier on PowerPC.  The
> implementation would be the single instruction "sync", but
> currently it's defined with:
>
> setOperationAction(ISD::MEMBARRIER, MVT::Other, Expand)
>
> in lib/Target/PowerPC/PPCISelLowering.cpp, which causes it
> to be a noop.  I replaced the "Expand" with "Legal" in the
> hope I'd get an error message that'd point me to where I
> need to start adding stuff, but I just got the cryptic:
>
>  Cannot yet select: 0x10fc0500: ch = MemBarrier 0x10fc0368,  
> 0x10fc0698, 0x10fc0610, 0x10fc0698, 0x10fc0698, 0x10fc0698".
>
> Can anyone point me in the right direction?
>
> Cheers,
> Gary
>
> -- 
> http://gbenson.net/
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list