summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PBQP/Solver.h
blob: 5b6a2849579349ad79628ff8b9e0c17c9c891ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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