[llvm-commits] [PATCH] Add OpenCL support to makefile system

Peter Collingbourne peter at pcc.me.uk
Mon Nov 15 13:57:03 PST 2010


On Mon, Nov 15, 2010 at 01:18:28PM -0800, Tanya Lattner wrote:
> Peter,
> 
> Can you explain a little bit more about your intentions with these changes?
> 
> To me, it seems like your runtime library should have its own separate build system and not rely on LLVM Makefiles. I do not think we would ever want to ship a OpenCL runtime library with LLVM.

Hi Tanya,

The OpenCL runtime library I am working on is an extension of another
project (KLEE) which uses the LLVM makefile system, and the easiest
way forward for me was to build the kernel runtime library using the
existing build system.

The second patch is really optional, as I was able to copy the .cl ->
.ll rule (which is all I need) to my runtime library makefile and use
it there without the patch, but the first patch makes it easier to
integrate support for new languages (either internally or externally).

Thanks,
-- 
Peter



More information about the llvm-commits mailing list