Lang Hames | 25e9651 | 2009-08-07 00:25:12 +0000 | [diff] [blame] | 1 | //===-- Solver.h ------- PBQP solver interface -----------------*- C++ --*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | |
Lang Hames | 3ca9a5b | 2009-08-06 23:32:48 +0000 | [diff] [blame] | 11 | #ifndef LLVM_CODEGEN_PBQP_SOLVER_H |
| 12 | #define LLVM_CODEGEN_PBQP_SOLVER_H |
| 13 | |
| 14 | #include "SimpleGraph.h" |
| 15 | #include "Solution.h" |
| 16 | |
| 17 | namespace PBQP { |
| 18 | |
| 19 | /// \brief Interface for solver classes. |
| 20 | class Solver { |
| 21 | public: |
| 22 | |
| 23 | virtual ~Solver() = 0; |
| 24 | virtual Solution solve(const SimpleGraph &orig) const = 0; |
| 25 | }; |
| 26 | |
| 27 | Solver::~Solver() {} |
| 28 | |
| 29 | } |
| 30 | |
| 31 | #endif // LLVM_CODEGEN_PBQP_SOLVER_H |