Added register unit weights to the target description.
authorAndrew Trick <atrick@apple.com>
Tue, 10 Apr 2012 02:25:21 +0000 (02:25 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 10 Apr 2012 02:25:21 +0000 (02:25 +0000)
commitd35ac3c8bc37ab383b10a04b9c8b1087d6b2bc45
treec4fce3fe570921ac6cdb05b6e123b9bb9fe313bc
parentaec111a06b595742683b529a7f4391becd7e24ec
Added register unit weights to the target description.

This is a new algorithm that associates registers with weighted
register units to accuretely model their effect on register
pressure. This handles registers with multiple overlapping
subregisters. It is possible, but almost inconceivable that the
algorithm fails to find an exact solution for a target description. If
an exact solution cannot be found, an inexact, but reasonable solution
will be chosen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154373 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/CodeGenRegisters.cpp
utils/TableGen/CodeGenRegisters.h