* [PATCH] Document __ATOMIC_HLE_ACQUIRE/RELEASE
@ 2012-11-09 15:04 Andi Kleen
2012-11-09 15:19 ` Jakub Jelinek
0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2012-11-09 15:04 UTC (permalink / raw)
To: gcc-patches; +Cc: Andi Kleen
From: Andi Kleen <ak@linux.intel.com>
Make a first stab at the undocumented HLE_ACQUIRE/RELEASE
memory model modifiers in the documentation
gcc/:
2012-11-09 Andi Kleen <ak@linux.intel.com>
* doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE and RELEASE.
---
gcc/doc/extend.texi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 54fd548..248977d 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -7194,6 +7194,16 @@ Full barrier in both directions and synchronizes with acquire loads and
release stores in all threads.
@end table
+Additional target specific flags that can be ored with the memory models.
+@table @code
+@item __ATOMIC_HLE_ACQUIRE
+(on i386/x86_64). Start a Hardware Lock Elision transaction with the atomic
+operation. The memory model must be @code{__ATOMIC_ACQUIRE} or stronger.
+@item __ATOMIC_HLE_RELEASE
+(on i386/x86_64). Commit a Hardware Lock Elision transaction with the atomic
+operation. The memory model must be @code{__ATOMIC_RELEASE} or stronger.
+@end table
+
When implementing patterns for these built-in functions, the memory model
parameter can be ignored as long as the pattern implements the most
restrictive @code{__ATOMIC_SEQ_CST} model. Any of the other memory models
--
1.7.11.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Document __ATOMIC_HLE_ACQUIRE/RELEASE
2012-11-09 15:04 [PATCH] Document __ATOMIC_HLE_ACQUIRE/RELEASE Andi Kleen
@ 2012-11-09 15:19 ` Jakub Jelinek
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2012-11-09 15:19 UTC (permalink / raw)
To: Andi Kleen; +Cc: gcc-patches, Andi Kleen
On Fri, Nov 09, 2012 at 04:04:15PM +0100, Andi Kleen wrote:
> +Additional target specific flags that can be ored with the memory models.
> +@table @code
> +@item __ATOMIC_HLE_ACQUIRE
> +(on i386/x86_64). Start a Hardware Lock Elision transaction with the atomic
> +operation. The memory model must be @code{__ATOMIC_ACQUIRE} or stronger.
Two spaces after . instead of just one.
> +@item __ATOMIC_HLE_RELEASE
> +(on i386/x86_64). Commit a Hardware Lock Elision transaction with the atomic
> +operation. The memory model must be @code{__ATOMIC_RELEASE} or stronger.
> +@end table
> +
> When implementing patterns for these built-in functions, the memory model
> parameter can be ignored as long as the pattern implements the most
> restrictive @code{__ATOMIC_SEQ_CST} model. Any of the other memory models
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-09 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09 15:04 [PATCH] Document __ATOMIC_HLE_ACQUIRE/RELEASE Andi Kleen
2012-11-09 15:19 ` Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).