Displaying 10 results from an estimated 10 matches for "llvm_atomics".
2007 Jul 09
0
[LLVMdev] Proposal for atomic and synchronization instructions
...concrete proposal for LLVM representations of atomic operations and
> synchronization constructs. These aim to provide the minimal
> functionality in the IR for representing the hardware constructs that
> threading libraries and parallel programming rely on.
>
> http://chandlerc.net/llvm_atomics.html
>
> While I am no expert on the various architectures, I've done my best
> at providing base-line implementations for each instruction. I am sure
> these will need tweaking and fixing, but should provide a very good
> starting point for the targets.
>
> Comments are mo...
2007 Jul 09
7
[LLVMdev] Proposal for atomic and synchronization instructions
...k, I have put together a
concrete proposal for LLVM representations of atomic operations and
synchronization constructs. These aim to provide the minimal
functionality in the IR for representing the hardware constructs that
threading libraries and parallel programming rely on.
http://chandlerc.net/llvm_atomics.html
While I am no expert on the various architectures, I've done my best
at providing base-line implementations for each instruction. I am sure
these will need tweaking and fixing, but should provide a very good
starting point for the targets.
Comments are more than welcome, especially sugge...
2007 Jul 09
2
[LLVMdev] Proposal for atomic and synchronization instructions
...VM representations of atomic operations and
> > synchronization constructs. These aim to provide the minimal
> > functionality in the IR for representing the hardware constructs that
> > threading libraries and parallel programming rely on.
> >
> > http://chandlerc.net/llvm_atomics.html
> >
> > While I am no expert on the various architectures, I've done my best
> > at providing base-line implementations for each instruction. I am sure
> > these will need tweaking and fixing, but should provide a very good
> > starting point for the targets....
2008 Feb 21
3
[LLVMdev] compare and swap
...SA, so removing that aspect of the
atomic primitives makes the *LLVM* representation easier to understand.
> And having another version that returns
> just a bool might be better in some cases ( 1. does CAS return the value on
> all architectures?
Check the page (http://chandlerc.net/llvm_atomics.html -- the
implementation info is still current, even though the docs are not) for
how this gets implemented. As Andrew has already pointed out, on x86,
the LLVM behavior maps to the underlying architecture. Other
architectures which might avoid a compare can easily do so by pattern
matching...
2007 Jul 09
0
[LLVMdev] Proposal for atomic and synchronization instructions
...mic operations and
> > > synchronization constructs. These aim to provide the minimal
> > > functionality in the IR for representing the hardware constructs that
> > > threading libraries and parallel programming rely on.
> > >
> > > http://chandlerc.net/llvm_atomics.html
> > >
> > > While I am no expert on the various architectures, I've done my best
> > > at providing base-line implementations for each instruction. I am sure
> > > these will need tweaking and fixing, but should provide a very good
> > > startin...
2007 Jul 09
0
[LLVMdev] Proposal for atomic and synchronization instructions
...concrete proposal for LLVM representations of atomic operations and
> synchronization constructs. These aim to provide the minimal
> functionality in the IR for representing the hardware constructs that
> threading libraries and parallel programming rely on.
>
> http://chandlerc.net/llvm_atomics.html
>
> While I am no expert on the various architectures, I've done my best
> at providing base-line implementations for each instruction. I am sure
> these will need tweaking and fixing, but should provide a very good
> starting point for the targets.
>
> Comments are mo...
2008 Feb 21
0
[LLVMdev] compare and swap
On Wednesday 20 February 2008 01:51, Andrew Lenharth wrote:
> Anyone have an idea? The patch as it stands is attached below. X86
> is a pseudo instruction because the necessary ones and prefixes aren't
> in the code gen yet, but I would imagine they will be (so ignore that
> ugliness). The true ugliness can be seen in the alpha impl which open
> codes it, including a couple
2008 Feb 20
5
[LLVMdev] compare and swap
I was working on compare and swap and ran into the following problem.
Several architectures implement this with a load locked, store
conditional sequence. This is good, for those archs I can write
generic code to legalize a compare and swap (and most other atomic
ops) to load locked store conditional sequences (then the arch only
had to give the instr for ldl, stc to support all atomic ops (this
2007 Jul 09
0
[LLVMdev] Proposal for atomic and synchronization instructions
...concrete proposal for LLVM representations of atomic operations and
> synchronization constructs. These aim to provide the minimal
> functionality in the IR for representing the hardware constructs that
> threading libraries and parallel programming rely on.
>
> http://chandlerc.net/llvm_atomics.html
>
> While I am no expert on the various architectures, I've done my best
> at providing base-line implementations for each instruction. I am sure
> these will need tweaking and fixing, but should provide a very good
> starting point for the targets.
>
> Comments are mo...
2007 Jul 12
4
[LLVMdev] Atomic Operation and Synchronization Proposal v2
Hello,
This is the second major revision of the atomic proposal for LLVM. I
will try and give a brief overview of the motivating changes, but a
greater portion of the text has changed, along with some changes to
the proposed additions.
http://chandlerc.net/llvm_atomics.html
- The proposal has been rewritten to better delineate the goals and
purposes of LLVM, and these additions to LLVM. The why and to what
purpose has been a source of confusion, and this is addressed
directly.
- The explanation of memory barriers and why the representation was
chosen has been re...