Add some abstract base classes for the AST->IR translation.