Move register namespacing definitions from TargetRegisterInfo to Register
authorDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 1 Aug 2019 21:18:34 +0000 (21:18 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 1 Aug 2019 21:18:34 +0000 (21:18 +0000)
commit66c8bccc236f5633d7de9b6264384b02a821b714
tree97f06a2a1235dc9d44a49c64939916b181bd0aef
parent625f59d19002146ded8e42f30f9e5f3814b7c8b3
Move register namespacing definitions from TargetRegisterInfo to Register

Summary:
The namespacing in Register is currently slightly wrong as there is a
(rarely used) stack slot namespace too. The namespacing doesn't use
anything from the Target so we can move the definition from
TargetRegisterInfo to Register to keep it in one place

Note: To keep the patch reasonably sized for review I've left stub
functions in the original TargetRegisterInfo. We should update all the uses
instead

Reviewers: arsenm, bogner, aditya_nandakumar, volkan

Subscribers: wdng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65553

llvm-svn: 367614
llvm/include/llvm/CodeGen/Register.h
llvm/include/llvm/CodeGen/TargetRegisterInfo.h
llvm/include/llvm/MC/MCRegister.h [new file with mode: 0644]