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. > Note, there is no option '-mhle' and no tests (I'll do that after) > > [1] - > http://software.intel.com/en-us/blogs/2012/02/07/transactional-synchronization-in-haswell/ Jakub