[PATCH] D18051: [CUDA] Provide CUDA's vector types implemented using clang's vector extension.

Hal Finkel via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 10 16:43:38 PST 2016


[+Richard] 

----- Original Message -----

> From: "Artem Belevich" <tra at google.com>
> To: reviews+D18051+public+fb9c7f3f37ff843f at reviews.llvm.org
> Cc: "Justin Lebar" <jlebar at google.com>, "Jingyue Wu"
> <jingyue at google.com>, "Hal Finkel" <hfinkel at anl.gov>, "cfe-commits"
> <cfe-commits at lists.llvm.org>
> Sent: Thursday, March 10, 2016 6:38:21 PM
> Subject: Re: [PATCH] D18051: [CUDA] Provide CUDA's vector types
> implemented using clang's vector extension.

> There were ambiguities in overload resolution between vector types
> and their base types. I.e. if I had

> void foo(int);
> void foo(int3);

> then call foo(3) was ambiguous.
> It wasn't clear whether this extension is supposed to work in C++ at
> all.

I'm pretty sure that the vector types are supposed to work in C++, and they have different manglings, so that behavior seems like either bug or a missing desirable feature. Richard, what do you think? 

Thanks again, 
Hal 

> On Thu, Mar 10, 2016 at 4:05 PM, Hal Finkel < hfinkel at anl.gov >
> wrote:

> > hfinkel added a subscriber: hfinkel.
> 
> > hfinkel added a comment.
> 

> > In http://reviews.llvm.org/D18051#372490 , @tra wrote:
> 

> > > Ugh. Found more problems with using vector types in C++.
> > > Abandoning
> > > the idea.
> 

> > I'm curious, what problems?
> 

> > http://reviews.llvm.org/D18051
> 

> --

> --Artem Belevich
-- 

Hal Finkel 
Assistant Computational Scientist 
Leadership Computing Facility 
Argonne National Laboratory 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160310/65f8a549/attachment.html>


More information about the cfe-commits mailing list