[LLVMdev] Implementing llvm.memory.barrier on PowerPC

Dale Johannesen dalej at apple.com
Wed Aug 20 17:25:51 PDT 2008


On Aug 19, 2008, at 7:18 AMPDT, Gary Benson wrote:

> Hi all,
>
> I'm trying to implement llvm.memory.barrier on PowerPC.  I've modelled
> my patch (attached) on the implementation in X86, but when I try and
> compile my test file (also attached) with llc I get the error "Cannot
> yet select: 0x10fa4ad0: ch = MemBarrier 0x10fa4828, 0x10fa4c68,
> 0x10fa4be0, 0x10fa4be0, 0x10fa4be0, 0x10fa4be0".  This presumably
> means my "membarrier" pattern isn't being found... but why?
>
> Thanks in advance,
> Gary

Because the i1's in the .bc file get promoted to i32 on ppc, instead  
of i8.
I've forgotten why this is, there's a setting somewhere.  If you  
change the
i8's in membarrier to i32's it works.
Thanks for doing this btw.

> --
> http://gbenson.net/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: memory-barrier.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080820/b647b48a/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.bc
Type: application/octet-stream
Size: 236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080820/b647b48a/attachment.obj>
-------------- next part --------------
> _______________________________________________
> 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