[LLVMdev] Proposal for a new LLVM concurrency memory model

David Greene dag at cray.com
Tue Apr 27 09:48:55 PDT 2010


On Tuesday 27 April 2010 11:02:54 David Greene wrote:
> On Monday 26 April 2010 16:09:48 Jeffrey Yasskin wrote:
> > > Vector atomics are extremely useful on architectures that support them.
> >
> > I'm curious about the architectures/instructions you're thinking of.
> > Something like 'lock; movdqa'?
>
> Don't think X86.  Think traditional vector machines like the Cray X1/X2.
> Atomic vector adds and logicals are common operations.

In terms of x86, the equivalent would be if there was an instruction like

ADDPD mem128, xmm

and we could put a LOCK prefix on it.

                            -Dave




More information about the llvm-dev mailing list