This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [i386, patch, RFC] HLE support in GCC
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Kirill Yukhin <kirill dot yukhin at gmail dot com>, Uros Bizjak <ubizjak at gmail dot com>, Richard Henderson <rth at redhat dot com>, Andrew MacLeod <amacleod at redhat dot com>, Richard Guenther <rguenther at suse dot de>, Andi Kleen <andi at firstfloor dot org>, Sergey Ostanevich <sergos dot gnu at gmail dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 7 Mar 2012 17:57:10 -0800
- Subject: Re: [i386, patch, RFC] HLE support in GCC
- References: <CAGs3Rfu6kiQhDPXy_QmEyKzs-FXPO9i74VUEUPoHX0WiEaz_iA@mail.gmail.com> <20120307111008.GK16117@tyan-ft48-01.lab.bos.redhat.com>
On Wed, Mar 7, 2012 at 3:10 AM, Jakub Jelinek <jakub@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.