[llvm-dev] LLVM for OpenCL

Sachkov, Alexey via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 18 07:15:40 PDT 2019


You can find some OpenCL-specific transformations in pocl [1] and in intel-graphics-compiler [2] LLVM-based projects outside of LLVM

[1]: https://github.com/pocl/pocl
[2]: https://github.com/intel/intel-graphics-compiler


From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Min-Yih Hsu via llvm-dev
Sent: Wednesday, September 18, 2019 8:37 AM
To: Enrique González <enrike.gonzalez.98 at gmail.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] LLVM for OpenCL

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<mailto: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<mailto:llvm-dev at lists.llvm.org>
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


--------------------------------------------------------------------
Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190918/ce4bc169/attachment.html>


More information about the llvm-dev mailing list