[cfe-commits] [PATCH]OpenCL samplers

Joey Gouly joey.gouly at arm.com
Tue Feb 5 06:49:58 PST 2013


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.








More information about the cfe-commits mailing list