3 ms·
The author invokes the idea that writing assembly and writing compiler passes are similar enough activities that you can substitute one for another, but that is
by gsg 13y ago
The author invokes the idea that writing assembly and writing compiler passes are similar enough activities that you can substitute one for another, but that is not the case.
Good thing, too - I don't even want to think about how buggy and slow compilers would become if random people started jamming passes into them based on nothing but expediency.
- octo_t 13y agoThe cool thing about LLVM is that "jamming passes" in, is something an individual team can do, adding a pass simply involves running opt -load path/to/pass.so < IR.bc Which emits (hopefully) optimised IR. Neat huh?