Move register class name strings to a single array in MCRegisterInfo to reduce static...
authorCraig Topper <craig.topper@gmail.com>
Mon, 17 Nov 2014 05:50:14 +0000 (05:50 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 17 Nov 2014 05:50:14 +0000 (05:50 +0000)
commita5babc8a31efd3bd40e6deec96d0ee1cb14e61eb
tree20d1207fd795501ee8ffd959302915c827e93226
parentdaa09d03abebc7134e898d7e186c49c8be6a3789
Move register class name strings to a single array in MCRegisterInfo to reduce static table size and number of relocation entries.

Indices into the table are stored in each MCRegisterClass instead of a pointer. A new method, getRegClassName, is added to MCRegisterInfo and TargetRegisterInfo to lookup the string in the table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222118 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/llvm/MC/MCRegisterInfo.h
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/AggressiveAntiDepBreaker.cpp
lib/CodeGen/ExecutionDepsFix.cpp
lib/CodeGen/InlineSpiller.cpp
lib/CodeGen/LiveRangeEdit.cpp
lib/CodeGen/LiveStackAnalysis.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/RegAllocBase.cpp
lib/CodeGen/RegAllocFast.cpp
lib/CodeGen/RegAllocGreedy.cpp
lib/CodeGen/RegisterClassInfo.cpp
lib/CodeGen/RegisterCoalescer.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
lib/CodeGen/VirtRegMap.cpp
utils/TableGen/RegisterInfoEmitter.cpp