[LLVMdev] Alternative to Linker::LinkInFile()

Tom Stellard tom at stellard.net
Thu Feb 14 17:20:07 PST 2013


On Thu, Feb 14, 2013 at 04:41:41PM -0800, Daniel Dunbar wrote:
> Hi Tom,
> 
> From the context I am assuming you are in a JIT context, so the comments
> about using a platform specific LTO mechanism don't apply.
> 
> Were you using this code to extract bitcode files from archives, or just to
> link in an individual bitcode file?
>

Hi Daniel,

I was using this code to link an individual bitcode file.  I would
compile and OpenCL C kernel to bitcode and then link it with an OpenCL C
builtin library which was also a bitcode file.

-Tom


> 
> 
> On Wed, Feb 13, 2013 at 12:24 PM, Tom Stellard <tom at stellard.net> wrote:
> 
> > Hi Daniel,
> >
> > In r172749 you removed the Linker::LinkInFiles() function and mentioned
> > in the commit message that users of this function should migrate to
> > "platform-specific linker-integrated LTO mechanisms, or the forthcoming
> > LLVM linker."
> >
> > I'm trying to update this code:
> >
> > http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/clover/llvm/invocation.cpp
> > to work with TOT and I was wondering if you could elaborate a little more
> > on these alternatives and maybe provide an example?
> >
> > Thanks,
> > Tom
> >



More information about the llvm-dev mailing list