diff options
author | Lang Hames <lhames@gmail.com> | 2009-08-06 23:32:48 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-08-06 23:32:48 +0000 |
commit | 88fae6f9c966353ca94a66708fcb16bd0ab22b68 (patch) | |
tree | dc43bfa1a56bec5d2d110a7432a49795c4053751 /llvm/lib/CodeGen/PBQP/Solver.h | |
parent | 15a5fad94bb8924a1d7cb8a5c87cb8c98ef72f52 (diff) | |
download | bcm5719-llvm-88fae6f9c966353ca94a66708fcb16bd0ab22b68.tar.gz bcm5719-llvm-88fae6f9c966353ca94a66708fcb16bd0ab22b68.zip |
New C++ PBQP solver. Currently about as fast (read _slow_) as the old C based solver, but I'll be working to improve that. The PBQP allocator has been updated to use the new solver.
llvm-svn: 78354
Diffstat (limited to 'llvm/lib/CodeGen/PBQP/Solver.h')
-rw-r--r-- | llvm/lib/CodeGen/PBQP/Solver.h | 21 |
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 |