}
- // To obtain the return value contained in a CALL machine instruction
+ // To obtain the return value and the indirect call address (if any)
+ // contained in a CALL machine instruction
//
const Value * getCallInstRetVal(const MachineInstr *CallMI) const;
+ const Value * getCallInstIndirectAddrVal(const MachineInstr *CallMI) const;
// The following methods are used to generate "copy" machine instructions
//---------------------------------------------------------------------------
// Finds the return value of a sparc specific call instruction
//---------------------------------------------------------------------------
+
const Value *
UltraSparcRegInfo::getCallInstRetVal(const MachineInstr *CallMI) const {
unsigned OpCode = CallMI->getOpCode();
}
+const Value *
+UltraSparcRegInfo::getCallInstIndirectAddrVal(const MachineInstr *CallMI) const
+{
+ return (CallMI->getOpCode() == JMPLCALL)?
+ CallMI->getOperand(0).getVRegValue() : NULL;
+}
+
//---------------------------------------------------------------------------
// Finds the return address of a call sparc specific call instruction