3 ms·
Can we directly execute LLVM-IR?
LLVM-IR seems to be a kind of "high-level assembly language": no registers (or all registers, depending on Pov), but simple operations. Should we forget about x86, arm, mips, whatever and simply build silicon to run LLVM-IR directly? (test in FPGA first)
- johndoe0815 5y agoThere's already an interpreter for LLVM-IR, lli (https://llvm.org/docs/CommandGuide/lli.html https://llvm.org/docs/CommandGuide/lli.html). A silicon or FPGA implementation would be complicated by the fact that LLVM-IR uses SSA (static single assignment), so common optimizations performed by a compiler backend (e.g. register allocation) would have to be performed in hardware.