LLVM API Documentation
00001 //===-- Solver.h ------- PBQP solver interface -----------------*- C++ --*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 00011 #ifndef LLVM_CODEGEN_PBQP_SOLVER_H 00012 #define LLVM_CODEGEN_PBQP_SOLVER_H 00013 00014 #include "SimpleGraph.h" 00015 #include "Solution.h" 00016 00017 namespace PBQP { 00018 00019 /// \brief Interface for solver classes. 00020 class Solver { 00021 public: 00022 00023 virtual ~Solver() = 0; 00024 virtual Solution solve(const SimpleGraph &orig) const = 0; 00025 }; 00026 00027 Solver::~Solver() {} 00028 00029 } 00030 00031 #endif // LLVM_CODEGEN_PBQP_SOLVER_H