Our colleague Job Noorman has written up a great blog post about his work at Igalia to enable RISC-V support in LLVM's BOLT post-link optimizer - covering some of the technical details, and the additional improvements made along the way (JITLink migration) https://blogs.igalia.com/compilers/2023/06/30/porting-bolt-to-risc-v/