outsourced some functionality
[libfirm] / ir / lpp / lpp_solvers.h
1 /**
2  * @file   lpp_solvers.h
3  * @date   16.06.2011
4  * @author Sebastian Hack
5  *
6  * Copyright (C) 2011 Saarland University
7  * Released under the LGPL
8  */
9
10 #ifndef LPP_SOLVER_H
11 #define 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 /* LPP_SOLVER_H */