blob: a9c5f837c453e963a4d189b8c407fba30b85dc13 [file] [log] [blame]
Lang Hames25e96512009-08-07 00:25:12 +00001//===-- 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 Hames3ca9a5b2009-08-06 23:32:48 +000011#ifndef LLVM_CODEGEN_PBQP_SOLVER_H
12#define LLVM_CODEGEN_PBQP_SOLVER_H
13
14#include "SimpleGraph.h"
15#include "Solution.h"
16
17namespace PBQP {
18
19/// \brief Interface for solver classes.
20class Solver {
21public:
22
23 virtual ~Solver() = 0;
24 virtual Solution solve(const SimpleGraph &orig) const = 0;
25};
26
27Solver::~Solver() {}
28
29}
30
31#endif // LLVM_CODEGEN_PBQP_SOLVER_H