[llvm-dev] How to build lli (LLVM JIT) for RISCV? (original) (raw)

Dogtail L via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 17 17:40:03 PST 2018


Hi everyone,

I am trying to build a JIT for the RISC-V platform, but I could not figure out how. Could you provide some hints? Great thanks!

Initially, I found that LLVM has RISCV backend, and I compiled it following the instructions here <https://github.com/lowRISC/riscv-llvm>. I got a cross-compiler version of clang (running on x86 and the generated binary runs on RISC-V), but the lli is still a X86 tool.

Then, I tried to build LLVM with riscv-gnu-toolchain <https://github.com/riscv/riscv-gnu-toolchain>, and I got many tools such as llc working on RISC-V properly. However, the lli still could not work properly. When I tried to process the LLVM bytecode file (.ll file) on RISC-V using lli, I got the error:

triple.* Furthermore, when I typed: lli -version, I got:

Could anyone give me some hints? Thank you so much!!

Best, Rui -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181217/0e66baec/attachment.html>



More information about the llvm-dev mailing list