/* pkl-passes.def - Front-end passes for the Pkl compiler.  */

/* Copyright (C) 2024, 2025, 2026 Jose E. Marchesi.  */

/* This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

PKL_PASS(PKL_PASS_F_TYPES,1)
     PKL_PHASE(trans1)
     PKL_PHASE(anal1)
     PKL_PHASE(typify1)
     PKL_PHASE(promo)
     PKL_PHASE(trans2)
     PKL_PHASE(fold)
     PKL_PHASE(trans3)
     PKL_PHASE(typify2)
     PKL_PHASE(anal2)
PKL_END_PASS

PKL_PASS(PKL_PASS_F_TYPES,2)
     PKL_PHASE(fold)
     PKL_PHASE(transf)
     PKL_PHASE(analf)
PKL_END_PASS

PKL_PASS(0,0)
     PKL_PHASE(transl)
PKL_END_PASS

PKL_PASS(0,0)
     PKL_PHASE(gen)
PKL_END_PASS

/*
Local variables:
mode:c
End:
*/
