[Clang] Convergent Attribute

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Tue May 10 11:34:48 PDT 2016


> CUDA? In any case, I don't see how the restriction helps users, and the attribute at the IR level has a well-defined meaning regardless. If a user were to have a use case, they'd simply find the restriction arbitrary and frustrating.

Yes, CUDA was already considered as well. I just think that compilers should help to reduce amount of erroneous or meaningless use cases. That's one of the reasons to have language options for the attributes. But I don't feel strongly about this particular case anyways. So let's make it language independent then. ;)

Anastasia 
 
-----Original Message-----
From: Hal Finkel [mailto:hfinkel at anl.gov] 
Sent: 10 May 2016 00:33
To: Anastasia Stulova
Cc: nd; Clang Commits; Matt Arsenault; Ettore Speziale; Aaron Ballman
Subject: Re: [Clang] Convergent Attribute

----- Original Message -----
> From: "Anastasia Stulova via cfe-commits" <cfe-commits at lists.llvm.org>
> To: "Matt Arsenault" <Matthew.Arsenault at amd.com>, "Ettore Speziale" <speziale.ettore at gmail.com>, "Aaron Ballman"
> <aaron at aaronballman.com>
> Cc: "nd" <nd at arm.com>, "Clang Commits" <cfe-commits at lists.llvm.org>
> Sent: Monday, May 9, 2016 12:39:19 PM
> Subject: RE: [Clang] Convergent Attribute
> 
> Since it's not a part of any official spec we could of course make it 
> accepted with anything.
> 
> Just out of curiosity what other programming models supported by Clang 
> do you think this attribute would be useful for?
> 
> Anastasia
> 
> -----Original Message-----
> From: Matt Arsenault [mailto:Matthew.Arsenault at amd.com]
> Sent: 07 May 2016 00:37
> To: Anastasia Stulova; Ettore Speziale; Aaron Ballman
> Cc: nd; Clang Commits
> Subject: Re: [Clang] Convergent Attribute
> 
> On 05/06/2016 12:11 PM, Anastasia Stulova via cfe-commits wrote:
> > I was just wondering whether it would make sense to restrict the 
> > usage of the attribute to OpenCL language i.e. to add  "let LangOpts 
> > = [OpenCL];" in the attribute definition.
> This seems to be a pointless arbitrary restriction to me
> 
> -Matt
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
> 

--
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-commits mailing list