beifg: Simplify the quite complicated way to divide a number by 2 in be_ifg_stat().
[libfirm] / ir / lpp / lpp_solvers.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @author  Sebastian Hack
9  */
10 #ifndef LPP_LPP_SOLVER_H
11 #define LPP_LPP_SOLVER_H
12
13 #include "lpp.h"
14
15 typedef void (lpp_solver_func_t)(lpp_t *lpp);
16
17 typedef struct {
18         lpp_solver_func_t *solver;
19         const char        *name;
20         int                n_instances;
21 } lpp_solver_t;
22
23 extern lpp_solver_t lpp_solvers[];
24
25 /**
26  * Find a solver for a given name.
27  */
28 lpp_solver_func_t *lpp_find_solver(const char *name);
29
30 #endif