Add an AllocationOrder class that can iterate over the allocatable physical
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Dec 2010 18:36:02 +0000 (18:36 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Dec 2010 18:36:02 +0000 (18:36 +0000)
commitc9672cb8bea13fcbcbdb1cf26708d831c034c089
treebb4d6faabdd9e006f74f47682f2bf7125a0438da
parente246717c3a36a913fd4200776ed621649bb2b624
Add an AllocationOrder class that can iterate over the allocatable physical
registers for a given virtual register.

Reserved registers are filtered from the allocation order, and any valid hint is
returned as the first suggestion.

For target dependent hints, a number of arcane target hooks are invoked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AllocationOrder.cpp [new file with mode: 0644]
lib/CodeGen/AllocationOrder.h [new file with mode: 0644]
lib/CodeGen/CMakeLists.txt
lib/CodeGen/VirtRegMap.h