cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

jaidotsh
Staff

Adding a GPU optimization pass in OpenCL LLVM

Hello,

I wanted to add an optimization pass for the OpenCL compiler. It involves modifying the kernel code. Is adding pass to OpenCL compiler similar to that of adding a pass as in http://llvm.org/docs/WritingAnLLVMPass.html . If there is a difference, how do I go about adding a pass to this compiler?

0 Likes
1 Reply

jaodotsh,
Yes adding a pass is as simple as adding an LLVM pass. However, we do not support customers adding passes to the compiler. If you want something added into the OpenCL compiler, you need to get it added to the LLVM tree and then we can evaluate it when we upgrade LLVM versions.
0 Likes