dotc/Compiler.scala
The entry point to the compiler contains the list of phases and their order.
Some phases executed independently, but others (miniphases) are grouped for efficiency. See the paper "Miniphases: Compilation using Modular and Efficient Tree Transformation" for details.