]> granicus.if.org Git - llvm/commit
Register/MCRegister: Add conversion operators to avoid use of implicit convert to...
authorDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 5 Aug 2019 19:50:25 +0000 (19:50 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 5 Aug 2019 19:50:25 +0000 (19:50 +0000)
commit5b65c475ad6fc14aa6260b26948d598554c00547
treec16b30c29807f03b4d9eef580370462b84c25219
parent22f9a7b6586e43e8b5e20d025545c7b100c0eb82
Register/MCRegister: Add conversion operators to avoid use of implicit convert to unsigned. NFC

Summary:
This has no functional effect but makes it more obvious which parts of the
compiler do not use Register/MCRegister when you mark the implicit conversion
deprecated.

Implicit conversions for comparisons accounted for ~20% (~3k of ~13k) of
the implicit conversions when I first measured it. I haven't maintained
those numbers as other patches have landed though so it may be out of date.

Reviewers: arsenm

Reviewed By: arsenm

Subscribers: wdng, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367916 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/Register.h
include/llvm/MC/MCRegister.h