[llvm-dev] Any plan to implement JIT for RISC-V ?

Martin Troiber via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 29 10:29:34 PST 2021


Hi all,

Since someone already started with the JIT implementation for RISCV I 
was wondering which steps are missing.

Is there a series of commits for x86 or ARM to take inspiration from?

What is the current state of llvm-jitlink on RISCV?

Aside from jitlink what is missing to make the "Building a JIT" tutorial 
fully functional?

On top of that what is missing for lli?

I would be interested in helping with this effort so a few pointers in 
the right direction would be great.

Best wishes

Martin

On 17.07.21 08:35, llvm-dev at lists.llvm.org (Lang Hames via llvm-dev) 
wrote:
> Hi All,
>
> Someone submitted a review for a JITLink RISCV implementation recently --
> https://reviews.llvm.org/D105429. Was this one of you? :)
>
> -- Lang.
>
> On Thu, Apr 22, 2021 at 6:15 AM Stefan Gränitz <stefan.graenitz at gmail.com>
> wrote:
>
>> As codegen exists for RISCV, this comes down to providing a proper link
>> step I believe. For the longest time LLVM JIT used RuntimeDyld for it, but
>> it hasn't seen many extensions recently. JITLink has backends for MachO
>> x86-64/ARM64 and ELF x86-64 currently. I think ELF ARM32/64 are highly
>> desirable and there seems to be interest in a COFF backend as well. I like
>> the idea of adding RISCV here!
>>
>> The vast majority of code was written by Lang Hames (cc). I had the
>> opportunity to help with a few details in the ELF implementation and I am
>> familiar with most of the relevant JIT parts. Adding a backend for a new
>> arch, however, requires decent domain knowledge. If there's an effort to
>> make one, I am happy to join, but it's a little more than a spare time
>> project.
>>
>> On 21/04/2021 05:47, Du Chao via llvm-dev wrote:
>>
>> Hi all,
>>
>> May I know if there is any plan to add RISCV support in LLVM JIT ?
>>
>> Regards,
>> Du Chao
>>
>>
>>
>> _______________________________________________
>> LLVM Developers mailing listllvm-dev at lists.llvm.orghttps://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>> -- https://weliveindetail.github.io/blog/about/
>>
>>


More information about the llvm-dev mailing list