TableGen'erate mapping physical registers to encoding values.
authorJim Grosbach <grosbach@apple.com>
Tue, 15 May 2012 17:35:57 +0000 (17:35 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 15 May 2012 17:35:57 +0000 (17:35 +0000)
commit0ee07e013095e8c298fbcc5203e0bc9f334e15e1
tree1e7b851af5c6f95999cb9e9fc48c0761575d5b7a
parent918f55fe239f00651e396be841f2b3b6e242f98d
TableGen'erate mapping physical registers to encoding values.

Many targets always use the same bitwise encoding value for physical
registers in all (or most) instructions. Add this mapping to the
.td files and TableGen'erate the information and expose an accessor
in MCRegisterInfo.

patch by Tom Stellard.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156829 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCRegisterInfo.h
include/llvm/Target/Target.td
utils/TableGen/RegisterInfoEmitter.cpp