Source
- URL: https://x.com/clattner_llvm/status/1872213611076276706
- Author: Chris Lattner (@clattner_llvm)
- Posted: 2024-12-26 09:31:23
Branch
1/ @clattner_llvm
LLVM does what you want, you just need to learn what the MC layer is all about. Solved years ago for those in the know.
LLVM’s mid-level optimizations are not great for many reasons (see mojo talks at the llvm dev meetings) but it’s codegen is unmatched, particularly when you get to the vagaries of SIMD, ai instructions and all the other things that unlock the flops on modern cpus.
Lots of people observe (correctly) that llvm is annoying and imagine the fun part of building a code generator, only to forget the actually hard part.
2/ @Jonathan_Blow
As I mentioned somewhere in that giant wall of text, we just can’t take on LLVM as a core dependency because it is too big and cumbersome and slow at compiling. This is mostly not your fault, much of it happened more recently, but it is what it is.
We already have a code generator for x86, it just doesn’t do the hard part yet. Yay.
3/ @lmcanavals
@Jonathan_Blow @clattner_llvm @rflaherty71
Aw, man I got my hopes up for an epic cross over