Reland: [TII] Use optional destination and source pair as a return value; NFC
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>
Fri, 8 Nov 2019 10:19:58 +0000 (11:19 +0100)
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>
Fri, 8 Nov 2019 12:00:39 +0000 (13:00 +0100)
commit8d2ccd1ac32ca5c96fc17e265fec5e1fc94a0520
tree47d5d4208f93b04b62dbcb6113764d68b1a033ac
parent5a1bac4d1daee2bcbf13365a8254a26d242d8c46
Reland: [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
13 files changed:
llvm/include/llvm/CodeGen/TargetInstrInfo.h
llvm/lib/CodeGen/LiveDebugValues.cpp
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.h
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMBaseInstrInfo.h
llvm/lib/Target/Mips/Mips16InstrInfo.cpp
llvm/lib/Target/Mips/Mips16InstrInfo.h
llvm/lib/Target/Mips/MipsSEInstrInfo.cpp
llvm/lib/Target/Mips/MipsSEInstrInfo.h
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.h