2 ms·
They are not hard assuming you constrain the problem. LLVM is complex because it's trying to generalise to support a huge number of input languages and a huge n
by vidarh 4y ago
They are not hard assuming you constrain the problem. LLVM is complex because it's trying to generalise to support a huge number of input languages and a huge number of outputs.
The upside is that it lets you write generic optimisation passes. The downside is complexity.
It's still an open question whether or not that is a good approach in general vs. more specialized code generators and accepting that this means writing specialized optimisation passes.
Your answer to that is likely to vary greatly based on goals and which languages and architectures you care about supporting.