[LLVMdev] [PATCH][RFC] Add llvm.codegen Intrinsic To Support Embedded LLVM IR Code Generation
dag at cray.com
dag at cray.com
Tue May 8 10:47:30 PDT 2012
Justin Holewinski <justin.holewinski at gmail.com> writes:
> I believe the point Tobias is trying to make is that he wants to
> retain the ability to pipe modules between tools and not worry about
> the modules ever hitting disk, e.g.
>
> opt -load GPUOptimizer.so -gpu-opt | llc -march=x86
> where the module coming in to opt is just unoptimized host code, and the module coming out of opt has embedded GPU IR.
So you want opt to extract kernels?
In that case, you'll have to replace llc with some external tool that
moves those kernels to separate IR files, invokes llc on them and then
links them back together.
-Dave
More information about the llvm-dev
mailing list