How to Implement OpenCL Frontend with clang

Hi,
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
from http://comments.gmane.org

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!

THX

iopencl team

SJTU

Hi,

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:

http://llvm.org/devmtg/2009-10/

Best!

Nan

Thank you.

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

在 2010年7月16日 下午5:59,Nan Zhu <zhunansjtu@gmail.com>写道: