Encoding Variable-Length Instructions in LLVM
Published on February 16, 2022 by Min-Yih Hsu
Hi folks!
A new blog post, Encoding Variable-Length Instructions in LLVM, has just been published! 🎉
https://m680x0.github.io/blog/2022/02/varlen-encoder.html
https://m680x0.github.io/blog/2022/02/varlen-encoder.html
This articles gives an in-depth write up on the new instruction encoder (code emitter) infrastructure, VarLenCodeEmitter, landed on upstream few days ago. It is LLVM's first systematic solution for encoding variable-length instructions. VarLenCodeEmitter greatly improves the readiness of M68k's instruction encoding scheme and make it easier to maintain.
Feedbacks are welcomed!
-Min