[llvm-dev] LLVM for OpenCL

Min-Yih Hsu via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 17 22:37:18 PDT 2019


A OpenCL C/C++ code can be compiled to LLVM bitcode, so it can be processed by `opt`. But currently to my best knowledge, there is no OpenCL-specific Passes in upstream LLVM.

-Min

> On Sep 17, 2019, at 2:03 PM, Enrique González via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Dear all,
> 
> I'm newbie in LLVM. I would like to know if it is available an optimizer for OpenCL in LLVM, in the same way as the 'opt' command in LLVM.
> 
> Concretely, if it is possible to perform individual optimizations/transformations over OpenCL code (either at source or bitcode representation) as it can be done for C code using:
> 
> - 'clang' to generate the .bc file(s)
> - 'opt' to perform optimizations/transformations over
> 
> Is it possible to use the same LLVM 'opt' as for C code, once OpenCL program is translated to bitcode/IR/SPIR?
> 
> Thanks in advance.
> 
> Enrique.  
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190917/49adf58a/attachment-0001.html>


More information about the llvm-dev mailing list