3 ms·
Ask HN: Compilers with a pass description language?
With a fixed IR, and a fixed (unlike LLVM) textual representation for said IR, could use a mixture of a description language and regular code to programmatically generate passes (e.g. at compile time). This would effectively be Graph (on the whole IR) or string (in a basic block) rewriting.
The idea being that people retargeting the compiler could easily specify peephole optimisations without having to learn a much more complex part of a project (probably the only thing simple enough to work).