[PATCH] D65553: Move register namespacing definitions from TargetRegisterInfo to Register

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 18:59:20 PDT 2019


dsanders created this revision.
dsanders added reviewers: arsenm, bogner, aditya_nandakumar, volkan.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

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

Depends on D65552 <https://reviews.llvm.org/D65552>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65553

Files:
  llvm/include/llvm/CodeGen/TargetRegisterInfo.h
  llvm/include/llvm/MC/Register.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65553.212713.patch
Type: text/x-patch
Size: 6168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190801/1f3013c9/attachment.bin>


More information about the llvm-commits mailing list