HomePhabricator

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

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

Description

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

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().

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

Details

Committed
mtrofinOct 6 2020, 12:09 PM
Differential Revision
D88862: [NFC][MC] Type uses of MCRegUnitIterator as MCRegister
Parents
rG6e557bc40507: [mlir][spirv] Add Vector to SPIR-V conversion pass
Branches
Unknown
Tags
Unknown