Make it possible to have unallocatable register classes.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 2 Jun 2011 23:07:20 +0000 (23:07 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 2 Jun 2011 23:07:20 +0000 (23:07 +0000)
commitf462e3fac7ac67503657d63dc35330d0b19359b3
tree2324e4b7c3547704d0430168fd4e11e49fb790a6
parentd63308978331aa6baed720a94e372d043bcc10bb
Make it possible to have unallocatable register classes.

Some register classes are only used for instruction operand constraints.
They should never be used for virtual registers. Previously, those
register classes were given an empty allocation order, but now you can
say 'let isAllocatable=0' in the register class definition.

TableGen calculates if a register is part of any allocatable register
class, and makes that information available in TargetRegisterDesc::inAllocatableClass.

The goal here is to eliminate use cases for overriding allocation_order_*
methods.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132508 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/Target.td
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/MachineRegisterInfo.cpp
lib/Target/TargetRegisterInfo.cpp
utils/TableGen/CodeGenRegisters.h
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/RegisterInfoEmitter.cpp