Not directly with base Julia, but there is a very neat package with the capability to call directly C++, using Clang to generate IR and then JIT'ing (all in-memory, no files involved).
https://github.com/Keno/Cxx.jl Is LLVM IR code portable across different LLVM and Clang versions? No. On Thu, Feb 26, 2015 at 5:43 AM, <[email protected]> wrote: > Hello! Julia is build around LLVM and uses it for JIT compilation. Can I > use LLVM library bundled with Julia from within Julia code? I'd like to use > Julia to read LLVM IR code generated by Clang, modify it and write it back. > Is it possible to do with Julia? Can you give me some directions on how it > could be done? Is LLVM IR code portable across different LLVM and Clang > versions? >
