Added a separate class (PBQPBuilder) for PBQP Problem construction. This class can...
authorLang Hames <lhames@gmail.com>
Sat, 18 Sep 2010 09:07:10 +0000 (09:07 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 18 Sep 2010 09:07:10 +0000 (09:07 +0000)
commiteb6c8f53b4df1488f3d07c11af8f754cc4620f3a
treeb984ad40c2a93d7d121569a09554d4e482800272
parentaf3874d661953cfe51eb4339db8c540b569e7b4a
Added a separate class (PBQPBuilder) for PBQP Problem construction. This class can be extended to support custom constraints.

For now the allocator still uses the old (internal) construction mechanism by default. This will be phased out soon assuming
no issues with the builder system come up.

To invoke the new construction mechanism just pass '-regalloc=pbqp -pbqp-builder' to llc. To provide custom constraints a
Target just needs to extend PBQPBuilder and pass an instance of their derived builder to the RegAllocPBQP constructor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114272 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/CodeGen/PBQP/Graph.h [new file with mode: 0644]
include/llvm/CodeGen/PBQP/HeuristicBase.h [new file with mode: 0644]
include/llvm/CodeGen/PBQP/HeuristicSolver.h [new file with mode: 0644]
include/llvm/CodeGen/PBQP/Heuristics/Briggs.h [new file with mode: 0644]
include/llvm/CodeGen/PBQP/Math.h [new file with mode: 0644]
include/llvm/CodeGen/PBQP/Solution.h [new file with mode: 0644]
include/llvm/CodeGen/RegAllocPBQP.h [new file with mode: 0644]
lib/CodeGen/PBQP/Graph.h [deleted file]
lib/CodeGen/PBQP/HeuristicBase.h [deleted file]
lib/CodeGen/PBQP/HeuristicSolver.h [deleted file]
lib/CodeGen/PBQP/Heuristics/Briggs.h [deleted file]
lib/CodeGen/PBQP/Math.h [deleted file]
lib/CodeGen/PBQP/Solution.h [deleted file]
lib/CodeGen/RegAllocPBQP.cpp