How to Implement OpenCL Frontend with clang

We are undergraduate students at Shanghai Jiao Tong University, China.We are working on a project to implement OpenCL on Intel(R) platform.
Our plan is using clang+llvm to implement the frontend and using gallium3D to implement the backend.

We begin at Zack Rusin implemention, called clover. We find there is something wrong with clcompiler, so we search on the Internet and find this maillist

Can anyone give us some guide or source code that implement OpenCL C Language compiler with clang-2.6? For example, whether we need to modify
clang source code and which file we need to modify.Already implement source code is better!


iopencl team



I’m a master student in SE of SJTU, I wonder who is your advisor? Prof. Qi?

I remember that in the LLVM meeting of 2009, someone gave a talk on OPENCL with LLVM, you should follow that

You can find it here:



Thank you.

ps. My advisor is not Prof. Qi. :slight_smile:

在 2010年7月16日 下午5:59,Nan Zhu <>写道: