The process that converts an AST into IR.