OpenCL, GLSL Back-End For LLVM May Soon Open Up
Phoronix: OpenCL, GLSL Back-End For LLVM May Soon Open Up
A university student that successfully wrote OpenCL and GLSL back-ends to the Low Level Virtual Machine (LLVM) is arranging to have the code open-sourced if there is interest, which already LLVM developers are requesting...
While this is interesting, i'm not sure it has any bearing on Mesa
Mesa is trying to compile GLSL and OpenCL into a form the hardware understands, while this is doing the opposite.
IIUC, it will allow you to write some code in C and have LLVM transform that into an OpenCL program.
Existing GPL v3 OpenCL + LLVM implementation exists
Kudos to this student for his work.
I just wanted to mention that there is already an existing GPL'd LLVM+clang based OpenCL compiler/runtime. It was created by Seoul National University and Samsung, and can be found here:
It supports OpenCL 1.0, not 1.1, and it works on Cell, ARM, some DSPs, and I've used it in 32-bit x86. It probably wouldn't take much to get it working in 64-bit x86 as well (it compiles, but throws a run-time CPU detection error).
I've used it in a project I'm working on, and it functions as would be expected of an OpenCL 1.0-compliant runtime library.