lljit | Minimal Cython interface to LLVM JIT
kandi X-RAY | lljit Summary
kandi X-RAY | lljit Summary
Minimal Cython interface to LLVM JIT
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lljit
lljit Key Features
lljit Examples and Code Snippets
Community Discussions
Trending Discussions on lljit
QUESTION
I am trying to access a variable in the host program from LLVM IR, with a global variable, but I am having problems getting it to work. I am declaring a symbol with the required variable address in the main JitDylib. After that I create the Global variable with the same name, with external linkage so the linker can find it. But it does not work. Executing the Jit'ed functions crashes the host program.
Below is my test program based on the LLJIT example in the LLVM repository. I have tried many things such as using CreateGEP to get a valid pointer, or using a different JitDylib to declare the symbol. But none have worked for me. I suspect it is something linking related. Has anyone gotten it work using the new ORC V2 JIT API?
...ANSWER
Answered 2020-Jun-16 at 17:10A JITDylib needs to be told to search for symbols in the host program like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lljit
No Installation instructions are available at this moment for lljit.Refer to component home page for details.
Support
If you have any questions vist the community on GitHub, Stack Overflow.
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page