HomePhabricator

[TII] Use optional destination and source pair as a return value; NFC

Authored by djtodoro on Oct 31 2019, 6:48 AM.

Description

[TII] Use optional destination and source pair as a return value; NFC

Refactor usage of isCopyInstrImpl, isCopyInstr and isAddImmediate methods
to return optional machine operand pair of destination and source
registers.

Patch by Nikola Prica

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