[TII] Use optional destination and source pair as a return value; NFC
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>
Thu, 31 Oct 2019 13:48:32 +0000 (14:48 +0100)
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>
Thu, 31 Oct 2019 14:34:49 +0000 (15:34 +0100)
commit57ee0435bd47f23f3939f402914c231b4f65ca5e
treeb1a09511e8ebf15450eefbe30f85f6f2123a7abf
parent55314d323738e4a8c1890b6a6e5064e7f4e0da1c
[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