[LLVMdev] [PATCH][RFC] Add llvm.codegen Intrinsic To Support Embedded LLVM IR Code Generation
Tobias Grosser
tobias at grosser.es
Mon May 7 14:17:00 PDT 2012
On 05/07/2012 06:24 PM, dag at cray.com wrote:
> Tobias Grosser<tobias at grosser.es> writes:
>> Where exactly do you see problems with this intrinsic? It is not meant
>> to block further work in heterogeneous computing, but to allow us to
>> gradually improve LLVM to gain such features. It especially provides a
>> low overhead solution that adds working heterogeneous compute
>> capabilities for major GPU targets to LLVM. This working solution can
>> prepare the ground for closer integrated solutions.
>
> It feels like a code generator bolted onto the side of opt, llc,
> etc. with all of the details that involves. It seems much easier to me
> to just go through the "real" code generator.
It is the real code generator. It is just applied on embedded strings,
which is how both OpenCL and CUDA represent embedded programs. I doubt
there will ways to model OpenCL or CUDA more closely.
Tobi
More information about the llvm-dev
mailing list