Add TargetRegisterInfo::getRawAllocationOrder().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 16 Jun 2011 17:42:25 +0000 (17:42 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 16 Jun 2011 17:42:25 +0000 (17:42 +0000)
commit79c890f64f3b67f9b11341aa452c4302b75184aa
treeba0a00dad7a0ae4352ed25d92e1b27aa46c49baa
parent1e85ef645d388a8900320b81c0e6e8afb8804b06
Add TargetRegisterInfo::getRawAllocationOrder().

This virtual function will replace allocation_order_begin/end as the one
to override when implementing custom allocation orders. It is simpler to
have one function return an ArrayRef than having two virtual functions
computing different ends of the same array.

Use getRawAllocationOrder() in place of allocation_order_begin() where
it makes sense, but leave some clients that look like they really want
the filtered allocation orders from RegisterClassInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133170 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/RegisterClassInfo.cpp
lib/CodeGen/RenderMachineFunction.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp