Is anyone working on RTL to LLVM bitcode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Qwert Nerdish

You asked on gcc-help mailing list about RTL to LLVM bitcode conversion
in https://gcc.gnu.org/pipermail/gcc-help/2025-April/144133.html

> Clang can emit LLVM bitcode via -emit-llvm. llvmgcc replaces RTL with LLVM
> IR instead, but this is not what i'm looking for. This could written as (
> https://gcc.gnu.org/onlinedocs/gccint/Back-End.html) backend, where GCC
> compiles RTL down to LLVM IR using assembly file as output.



I would recommend experimenting such a converter at first as a GCC plugin, and
probably starting from GIMPLE/SSA representation (mostly target neutral), not
the target specific RTL one.

I am not familiar with LLVM bitcode but I was told it is not much target
specific and was inspired (longtime ago) by Gimple.

Some old ideas from https://arxiv.org/abs/1109.0779 could be relevant, even if
related code (e.g. https://github.com/bstarynk/bismon ...) is not immediately
compatible with current GCC (it was with old GCC 12 one). See the old
https://www.decoder-project.eu/ 

Regards

-- 
Basile STARYNKEVITCH                            <basile@xxxxxxxxxxxxxxxxx>
8 rue de la Faïencerie                       http://starynkevitch.net/Basile/  
92340 Bourg-la-Reine                         https://github.com/bstarynk
France                                https://github.com/RefPerSys/RefPerSys




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux