Dimitri Vorona
Dimitri Vorona
I was bitten by it, too. Right now I remove the duplicates manually, which reduces reinitialization times by factor 10. Would be nice, if it were a cquery feature.
Hi, I assume it applies to all "dunders"? I.e. I tried to patch `__matmul__` on `FunctionType` to implement function chaining. And although `f.__matmul__(g)` does the right think, `f @ g`...
@certik this is surprisingly tricky using the MCJIT, since the API isn't exposed. This become straight forward with ORC, which is the new JIT for LLVM>=6. #245 ist relevant here.
Hi, Your best options right now are to either compile a shared library or to emit a LLVM bitcode files and link them with the IR linker. Cheers, Dimitri. On...
Hi, I mean this method https://llvmlite.readthedocs.io/en/latest/user-guide/binding/modules.html with which you can link IR modules. On Aug 21, 2018 22:04, "Matthieu Gouel" wrote: Thanks for your response ! When you say IR...
Hi, What's format are your object files in? If it's LLVM bitcode then you can load the modules and link them in using llvmlite (parse_bitcode and link_in). If you emit...
The linkage of the global values can be changed by setting the `linkage` writable property, so something like this should do the trick: ```python3 mod = ir.Module() i8 = ir.IntType(8)...
@FrankC01 if it solves your issue, could you close it? If `section` is a requirement for you, I think it would be the best to open a new issue for...
What's the status on this? I've built something similar which works with the current version, should I open a PR?
Hi, > Are you looking for a way to produce shared libraries from the llvmlite API? Exactly. Of course, you would rely on platforms linker to actually create the modules,...