search for: addobjectfile

Displaying 10 results from an estimated 10 matches for "addobjectfile".

2020 Sep 28
2
LLVM Developers Meeting JIT BoF -- Request for Topics of Interest
Hi Geoff, We use LLJIT. Do addObjectFile() and StaticLibraryDefinitionGenerator work > for ELF objects? They do. :) I've not tested StaticLibraryDefinitionGenerator extensively on Linux. but we have a regression test checking basic usage. If you run into any trouble at all please file a bug and assign it to me. -- Lang. On M...
2020 Sep 28
2
LLVM Developers Meeting JIT BoF -- Request for Topics of Interest
...OrcV2 components? The high-level answer here (which we can dig into further in the BoF) is: For object files: - For raw OrcV2 components you'll want to create an RTDyldObjectLinkingLayer or ObjectLinkingLayer and use the 'add' method. - For an LLJIT instance you can just call the 'addObjectFile' method. - For the OrcV2 C API you can call the 'LLVMOrcLLJITAddObjectFile' function. For static libraries: - For raw OrcV2 components or an LLJIT instance you can attach a StaticLibraryDefinitionGenerator [1] to the JITDylib that you would like to load the library into. See [2] for an...
2014 Nov 20
2
[LLVMdev] Cannot debug objects added with "-extra-object" in lli.
...lli by using -extra-object flag, it's impossible to debug it with gdb. Object file is in ELF format generated by llc. It is properly loaded by mcjit. I noticed that the reason is probably in lack of calling "registerWithDebugger()" after object loading. Adding this registration to the addObjectFile function body causes crash in runtime, probably because the Buffer member in loaded ObjectImage is null. Am I right? Do you have any idea how it can be fixed without reimplementation od loading objects in RuntimeDyld? Regards. rodia -------------- next part -------------- An HTML attachment was sc...
2020 Oct 02
2
LLVM Developers Meeting JIT BoF -- Request for Topics of Interest
...-fPIC and uses symbols from a shared library, LLJIT does not > complain, but the code may crash without warning when it is executed. > > Geoff > > On Mon, Sep 28, 2020 at 11:58 PM Lang Hames <lhames at gmail.com> wrote: > >> Hi Geoff, >> >> We use LLJIT. Do addObjectFile() and StaticLibraryDefinitionGenerator >>> work for ELF objects? >> >> >> They do. :) >> >> I've not tested StaticLibraryDefinitionGenerator extensively on Linux. >> but we have a regression test checking basic usage. If you run into any >> tro...
2020 Sep 29
3
ORC JIT - different behaviour of ExecutionSession.lookup?
...e but this feels like a terrible approach… But now I’m curious xD So… if I load an IR-Module, could I use the static LLVM compiler to compile it to an object file and then use the source code of the LLD to load and resolve the symbols the same way/kind we did in the past? That sounds more like the “addObjectFile” function of the LLJIT… And then I guess I have to write a LinkLayer or something? That is where my knowledge ends… Disclaimer: I don’t like that approach but it would be interesting to know (also cause some people here would be happy with it .w.”) Thank you so far! Kind greetings Björn From: L...
2015 Jun 04
2
[LLVMdev] a life-cycle question for MCJIT
Context: We use MCJIT to generate machine code in our LLVM based JIT compiler. The code generation process has roughly 5 steps: 0. Generate and optimize LLVM IR. 1. Call generateCodeForModule on the output of (0) to translate LLVM IR to machine code. 2. Figure out the final locations for the code and data generated by MCJIT using an allocator specific to our runtime. Make
2020 Sep 30
2
ORC JIT - different behaviour of ExecutionSession.lookup?
...e but this feels like a terrible approach… But now I’m curious xD So… if I load an IR-Module, could I use the static LLVM compiler to compile it to an object file and then use the source code of the LLD to load and resolve the symbols the same way/kind we did in the past? That sounds more like the “addObjectFile” function of the LLJIT… And then I guess I have to write a LinkLayer or something? That is where my knowledge ends… Disclaimer: I don’t like that approach but it would be interesting to know (also cause some people here would be happy with it .w.”) You're trying to do all this on Hard Mode. ;)...
2020 Sep 28
2
LLVM Developers Meeting JIT BoF -- Request for Topics of Interest
Hi Andres, A topic that I'd find interesting is what it'd take to make it easier to > use profile guided optimization in the context of JIT. A few years back > I crudely hacked this together, but it was fairly ugly. It'd be nice to > make that easier. Possibly too complicated for that type of session? We couldn't go into detail, but we could kick off a discussion and
2020 Oct 01
2
ORC JIT - different behaviour of ExecutionSession.lookup?
...e but this feels like a terrible approach… But now I’m curious xD So… if I load an IR-Module, could I use the static LLVM compiler to compile it to an object file and then use the source code of the LLD to load and resolve the symbols the same way/kind we did in the past? That sounds more like the “addObjectFile” function of the LLJIT… And then I guess I have to write a LinkLayer or something? That is where my knowledge ends… Disclaimer: I don’t like that approach but it would be interesting to know (also cause some people here would be happy with it .w.”) You're trying to do all this on Hard Mode. ;)...
2020 Sep 28
2
ORC JIT - different behaviour of ExecutionSession.lookup?
Hey everyone, I felt this question is different from my other question - hope this is okay. So - I was playing around with the lookup function of the ExecutionSession and there are some things I don't understand. I have a .BC file with a function "?Sampler@@YAXXZ" referencing a value "?_Plansch_test@@3HA" that is not defined in that module itself. I first planed on not