I want to use the LLVM code generation Framework from Java.
I.e., I do not want to compile Java code into LLVM. I simply want an LLVM library for code generation that I can call from Java. The usual LLVM library is C, so I cannot use it.
Are there any Java ports? If no, what would be the easiest way to do it anyway? Wrap the API into JNI?
A quick search for llvm java api bindings turned out several projects that seem like a good fit:
All of those libraries use JNI to access the C-API, so you have a DLL or SO file of the LLVM itself in any case.