<div dir="ltr"><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;white-space:nowrap">Dear all,</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px">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.</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><font color="#333333" face="monospace"><span style="font-size:12px">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:</span></font><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;white-space:nowrap">- 'clang' to generate the .bc file(s)</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><font color="#333333" face="monospace"><span style="font-size:12px;white-space:nowrap">- 'opt' to perform optimizations/transformations over</span></font><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px">Is it possible to use the same LLVM 'opt' as for C code, once OpenCL program is translated to bitcode/IR/SPIR?</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;white-space:nowrap">Thanks in advance.</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px;white-space:nowrap">Enrique.</span>  <br></div>