We’ve only touched the very basics of the LLVM IR. Please visit the LLVM Language Reference Manual at https://llvm.org/docs/LangRef.html to…

The SSA form was developed in the late 1980s. Since then, it has been widely used in compilers because it…

This must be done reliably because we do not want to add names to the wrong scope in case of…

Equipped with this knowledge, we can now implement all the parts. First, we must create the definition of the AST…

Let’s have a look at the scope of names first. The scope of a name is the range where the…

Manually constructing a parser and a lexer can be a tedious task, especially if you try to invent a new…