From 6813c15e1d1946b634232018d77e51688ead704c Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 20 Jul 2007 20:14:52 +0000 Subject: [PATCH] No longer referencing "shared memory" as this can confuse people. The memory is clearly shared between processors if these instructions are being used, no further specification of what type of memory is necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40118 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index a45aba896b3..6ebbb293077 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -4841,7 +4841,7 @@ Handling document.

provides an interface to the hardware, not an interface to the programmer. It is aimed at a low enough level to allow any programming models or APIs which need atomic behaviors to map cleanly onto it. It is also modeled primarily on - hardware behavior. Just as hardware provides a "unviresal IR" for source + hardware behavior. Just as hardware provides a "universal IR" for source languages, it also provides a starting point for developing a "universal" atomic operation and synchronization IR.

@@ -4873,8 +4873,8 @@ declare i64 @llvm.atomic.lcs.i64.i64p.i64.i64( i64* <ptr>, i64 <cmp>
Overview:

- This loads a value in shared memory and compares it to a given value. If they - are equal, it stores a new value into the shared memory. + This loads a value in memory and compares it to a given value. If they are + equal, it stores a new value into the memory.

Arguments:

@@ -4887,10 +4887,10 @@ declare i64 @llvm.atomic.lcs.i64.i64p.i64.i64( i64* <ptr>, i64 <cmp>

Semantics:

This entire intrinsic must be executed atomically. It first loads the value - in shared memory pointed to by ptr and compares it with the value - cmp. If they are equal, val is stored into the shared - memory. The loaded value is yielded in all cases. This provides the - equivalent of an atomic compare-and-swap operation within the SSA framework. + in memory pointed to by ptr and compares it with the value + cmp. If they are equal, val is stored into the memory. The + loaded value is yielded in all cases. This provides the equivalent of an + atomic compare-and-swap operation within the SSA framework.

Examples:
@@ -4928,9 +4928,9 @@ declare i64 @llvm.atomic.ls.i64.i64p.i64( i64* <ptr>, i64 <val> )
 
Overview:

- This intrinsic loads the value stored in shared memory at ptr and - yields the value from memory. It then stores the value in val in the - shared memory at ptr. + This intrinsic loads the value stored in memory at ptr and yields + the value from memory. It then stores the value in val in the memory + at ptr.

Arguments:

@@ -4982,7 +4982,7 @@ declare i64 @llvm.atomic.las.i64.i64p.i64( i64* <ptr>, i64 <delta> )

Overview:

- This intrinsic adds delta to the value stored in shared memory at + This intrinsic adds delta to the value stored in memory at ptr. It yields the original value at ptr.

Arguments:
@@ -5029,8 +5029,8 @@ declare i64 @llvm.atomic.lss.i64.i64.i64( i64* <ptr>, i64 <delta> )
Overview:

- This intrinsic subtracts delta from the value stored in shared - memory at ptr. It yields the original value at ptr. + This intrinsic subtracts delta from the value stored in memory at + ptr. It yields the original value at ptr.

Arguments: