summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PBQP/Solver.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/PBQP/Solver.h')
-rw-r--r--llvm/lib/CodeGen/PBQP/Solver.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PBQP/Solver.h b/llvm/lib/CodeGen/PBQP/Solver.h
new file mode 100644
index 00000000000..5b6a2849579
--- /dev/null
+++ b/llvm/lib/CodeGen/PBQP/Solver.h
@@ -0,0 +1,21 @@
+#ifndef LLVM_CODEGEN_PBQP_SOLVER_H
+#define LLVM_CODEGEN_PBQP_SOLVER_H
+
+#include "SimpleGraph.h"
+#include "Solution.h"
+
+namespace PBQP {
+
+/// \brief Interface for solver classes.
+class Solver {
+public:
+
+ virtual ~Solver() = 0;
+ virtual Solution solve(const SimpleGraph &orig) const = 0;
+};
+
+Solver::~Solver() {}
+
+}
+
+#endif // LLVM_CODEGEN_PBQP_SOLVER_H
OpenPOWER on IntegriCloud