> Tag: compiler
All the articles with the tag "compiler".
- // Compiler internals
Loopy - A Structurizer for generating structured control flow code.
A structurizer is used when the IR is unstructured but the code to be generated needs to be structured. A structured control flow represents idioms which are generally present in higher-level languages such as if-else, for-loop, while-loop, do-while etc.
- // Compiler internals
Constant Propagation & Folding.
Constant propagation and folding are generic optimizations which can greatly simplify the intermediate representation. It is the basis for other optimizations like loop unrolling, loop simplification, function inlining etc.
- // Compiler internals
Dominator Trees - Implementation and Why are they needed?
A Dominator Tree is a CFG analysis which is used in compilers to aid in other optimizations. This is useful when doing optimizations like code-hoisting or code sinking etc.
- // Compiler internals
Compiler IR - Considerations and Implementation
A Compiler intermediate representation - consideration and implementation details.