We are interested in using LLVM/clang compilation chain on Android for dynamic code generation, that is going from a Domain Specific Language ==> LLVM IR ==> JIT ==> native code.
Does anybody has already experimented this kind of setup? Any documentation or blog page… on the compilation chain we would have to use and how to set it up?
i’m not sure about clang executable but i was unable to use libclang starting Android Marshmallow.
It crashes during library loading and it worked for about 2 years until Marshmallow.
I know the LLVM JIT works on Linux/x86_64, and I believe it works on Linux/ARM, though I haven’t tested it myself.
There is some example code for using the LLVM JIT in llvm/examples/Kaleidoscope.
I already have code to using JIT running on OSX/Windows/Linux…The point is how to have the compilation chain and tools running on Linux/ARM ?
Ahh. I don’t have any experience building the tools for Linux/ARM I’m afraid, though I’d expect someone in the llvm/clang community to know how to do it.