Page MenuHomePhabricator

[NFC][MC] Type uses of MCRegUnitIterator as MCRegister
ClosedPublic

Authored by mtrofin on Oct 5 2020, 4:51 PM.

Details

Summary

This is one of many subsequent similar changes. Note that we're ok with
the parameter being typed as MCPhysReg, as MCPhysReg -> MCRegister is a
correct conversion; Register -> MCRegister assumes the former is indeed
physical, so we stop relying on the implicit conversion and use the
explicit, value-asserting asMCReg().

Diff Detail

Event Timeline

mtrofin created this revision.Oct 5 2020, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2020, 4:51 PM
mtrofin requested review of this revision.Oct 5 2020, 4:51 PM
gjain accepted this revision.Oct 5 2020, 8:25 PM
This revision is now accepted and ready to land.Oct 5 2020, 8:25 PM
This revision was landed with ongoing or failed builds.Oct 6 2020, 12:10 PM
This revision was automatically updated to reflect the committed changes.