On Wed, Mar 7, 2012 at 3:10 AM, Jakub Jelinek <ja...@redhat.com> wrote: > On Wed, Mar 07, 2012 at 03:05:58PM +0400, Kirill Yukhin wrote: >> Hello guys, >> I am attaching initial patch which enables TSX's HLE [1] prefixes in >> GCC. Since we have no official intrinsics declarations, I want to hear >> your comments about the patch > > I think this is a wrong approach. Instead we should use for this a flag > on the __atomic_* builtins (some higher bit of the memmodel) that would > say we want to emit an XACQUIRE or XRELEASE insn prefix. >
That sounds a good idea. Will it require front-end and middle-end changes? I assume they will be no-op for other backends. -- H.J.