2009-08-07 02:25:12 +02:00
|
|
|
//===-- Solver.h ------- PBQP solver interface -----------------*- C++ --*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
2009-08-07 01:32:48 +02:00
|
|
|
#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
|