[cfe-dev] OpenCL Changes in v3.9

Tom Stellard via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 18 07:51:59 PDT 2016


On Thu, Aug 18, 2016 at 03:47:59PM +0100, Martin J. O'Riordan via cfe-dev wrote:
> Hi,
> 
>  
> 
> I am trying to migrate to CLang/LLVM v3.9, and I am no longer able to build
> some of my libraries.  The code have uses the following:
> 
>  
> 
> #pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
> 
> #pragma OPENCL EXTENSION cl_khr_fp16 : enable
> 
>  
> 

Hi,

I think you need to implement: setSupportedOpenCLOpts() in your
target's TargetInfo implementation.

-Tom

> and these result in the following warnings:
> 
>  
> 
> warning: unsupported OpenCL extension 'cl_clang_storage_class_specifiers' -
> ignoring [-Wignored-pragmas]
> 
> warning: unsupported OpenCL extension 'cl_khr_fp16' - ignoring
> [-Wignored-pragmas]
> 
>  
> 
> This used to work, and a consequence of these not being recognised is that I
> get subsequent errors when I try to use the feature.
> 
>  
> 
> Is there a new way of saying this?
> 
>  
> 
> Thanks,
> 
>  
> 
>             MartinO
> 
>  
> 

> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list