diff options
Diffstat (limited to 'llvm/lib/Target/SparcV8/SparcV8InstrInfo.h')
-rw-r--r-- | llvm/lib/Target/SparcV8/SparcV8InstrInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h index 52cd7c7f8d0..9c7838dfdd7 100644 --- a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h +++ b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h @@ -41,6 +41,12 @@ public: /// always be able to get register info as well (through this method). /// virtual const MRegisterInfo &getRegisterInfo() const { return RI; } + + /// Return true if the instruction is a register to register move and + /// leave the source and dest operands in the passed parameters. + /// + virtual bool isMoveInstr(const MachineInstr &MI, + unsigned &SrcReg, unsigned &DstReg) const; }; } |