[LLVMdev] llvm.atomic.barrier implementation

Andrew Lenharth andrewl at lenharth.org
Fri Feb 15 13:34:12 PST 2008


Attached is the target independent llvm.atomic.barrier support, as
 well as alpha and x86 (sse2) support.  This matches Chandler's
 definitions, and the LangRef patch will just restore that.  Non-sse2
 barrier will be needed, I think it is "lock; mov %esp, %esp", but I'm
 not sure.

 Any objections?  I'll take a hack at the front end support for
 __sync_synchronize after this goes in.


 Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: barrier.patch
Type: text/x-diff
Size: 6626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080215/fdd767c0/attachment.patch>


More information about the llvm-dev mailing list