5b6a2849579349ad79628ff8b9e0c17c9c891ee7
[oota-llvm.git] / lib / CodeGen / PBQP / Solver.h
1 #ifndef LLVM_CODEGEN_PBQP_SOLVER_H
2 #define LLVM_CODEGEN_PBQP_SOLVER_H
3
4 #include "SimpleGraph.h"
5 #include "Solution.h"
6
7 namespace PBQP {
8
9 /// \brief Interface for solver classes.
10 class Solver {
11 public:
12
13   virtual ~Solver() = 0;
14   virtual Solution solve(const SimpleGraph &orig) const = 0;
15 };
16
17 Solver::~Solver() {}
18
19 }
20
21 #endif // LLVM_CODEGEN_PBQP_SOLVER_H