[cfe-commits] [PATCH]OpenCL samplers

Benyei, Guy guy.benyei at intel.com
Thu Feb 7 02:57:15 PST 2013


Thanks, committed to revision 174601.

Guy Benyei

-----Original Message-----
From: Tanya Lattner [mailto:lattner at apple.com] 
Sent: Thursday, February 07, 2013 03:20
To: Benyei, Guy
Cc: Joey Gouly; cfe-commits at cs.uiuc.edu
Subject: Re: [cfe-commits] [PATCH]OpenCL samplers


On Feb 6, 2013, at 12:39 PM, "Benyei, Guy" <guy.benyei at intel.com> wrote:

> Thanks Joey,
> I'll add a test for err_wrong_sampler_addressspace and the err_sampler_argument_required warnings, and remove the unused isConst line.
> 
> Any other comments?

I would change // For now we model samplers as integers. to "Samplers are modeled as integers"

Otherwise LGTM.

-Tanya

> 
> Thanks
>   Guy Benyei
> 
> 
> -----Original Message-----
> From: Joey Gouly [mailto:joey.gouly at arm.com]
> Sent: Tuesday, February 05, 2013 16:50
> To: Benyei, Guy; Tanya Lattner
> Cc: cfe-commits at cs.uiuc.edu
> Subject: RE: [cfe-commits] [PATCH]OpenCL samplers
> 
> Hi Guy,
> 
> You need to add tests for the two other warnings that you added.
> I'm not even sure how you can trigger err_sampler_argument_required, so that part of the code may be dead code.
> 
>> bool isConst = CurInit.get()->isConstantInitializer(S.Context, 
>> false);
> Unused variable.
> 
> Otherwise looks good.
> 
> Thanks,
> Joey
> 
> From: cfe-commits-bounces at cs.uiuc.edu
> [mailto:cfe-commits-bounces at cs.uiuc.edu] On Behalf Of Benyei, Guy
> Sent: 05 February 2013 14:15
> To: Tanya Lattner
> Cc: cfe-commits at cs.uiuc.edu
> Subject: RE: [cfe-commits] [PATCH]OpenCL samplers
> 
> Hi Tanya,
> I've added a specific test to check the SemaOverload part.
> The goal of the SemaOverload part is to enable the usage of constant and private address space samplers in overloaded functions. The OpenCL spec allows the usage of both, and they are actually the same.
> 
> Please review.
> 
> Thanks
>    Guy Benyei
> 
> 
> From: Tanya Lattner [mailto:lattner at apple.com]
> Sent: Thursday, January 31, 2013 03:18
> To: Benyei, Guy
> Cc: cfe-commits at cs.uiuc.edu
> Subject: Re: [cfe-commits] [PATCH]OpenCL samplers
> 
> Overall, this patch looks ok to me.
> 
> I'm not familiar enough with the changes in lib/SemaOverload though to know if that is correct. Do you have a test case that is covering that case?
> 
> Thanks,
> Tanya
> 
> On Jan 28, 2013, at 5:54 AM, "Benyei, Guy" <guy.benyei at intel.com> wrote:
> 
> Hi Tanya,
> Here is the sampler part.
>  
> Please review.
>  
> <image001.png>
>  
> From: Tanya Lattner [mailto:lattner at apple.com]
> Sent: Saturday, January 26, 2013 02:19
> To: Benyei, Guy
> Cc: cfe-commits at cs.uiuc.edu
> Subject: Re: [cfe-commits] [PATCH]OpenCL samplers
>  
> Guy,
>  
> I would break this out into separate patches. One for the sampler type, one for restriction checking, and the fix for event_t.
>  
> -Tanya
>  
> On Jan 24, 2013, at 12:37 PM, "Benyei, Guy" <guy.benyei at intel.com> wrote:
> 
> 
> Hi all,
> Attached a patch that implements the OpenCL sampler_t type in Clang. The sampler_t type is represented by the i32 LLVM type.
> Added also some restriction checking for images and samplers, and a fix for the event_t implementation that enables using zero events with function overloading.
>  
> Please review
>  
>      Thanks
>           Guy Benyei
>  
> <image001.png>
>  
> <opencl_samplers.patch>
> ---------------------------------------------------------------------
> Intel Israel (74) Limited
> This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>  
> <opencl_samplers2.patch>
> ---------------------------------------------------------------------
> Intel Israel (74) Limited
> This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Intel Israel (74) Limited
> 
> This e-mail and any attachments may contain confidential material for 
> the sole use of the intended recipient(s). Any review or distribution 
> by others is strictly prohibited. If you are not the intended 
> recipient, please contact the sender and delete all copies.

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.





More information about the cfe-commits mailing list