diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2003-06-01 02:48:23 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2003-06-01 02:48:23 +0000 |
commit | e6c3ee6b07ce743ac1e2173b895c57b3067e64a4 (patch) | |
tree | e5869d2a51b8a69a34a5bc2a73272cbdd3a374c8 /llvm | |
parent | 03a2134253a4560172d65d9bb0ba8b40ad65d45c (diff) | |
download | bcm5719-llvm-e6c3ee6b07ce743ac1e2173b895c57b3067e64a4.tar.gz bcm5719-llvm-e6c3ee6b07ce743ac1e2173b895c57b3067e64a4.zip |
Add map info for arguments to call (copies)
llvm-svn: 6503
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcRegInfo.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegInfo.cpp b/llvm/lib/Target/Sparc/SparcRegInfo.cpp index 141f22667d6..1cc274de00f 100644 --- a/llvm/lib/Target/Sparc/SparcRegInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcRegInfo.cpp @@ -12,6 +12,7 @@ #include "llvm/CodeGen/PhyRegAlloc.h" #include "llvm/CodeGen/InstrSelection.h" #include "llvm/CodeGen/MachineInstrBuilder.h" +#include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineInstrAnnot.h" #include "llvm/CodeGen/FunctionLiveVarInfo.h" // FIXME: Remove #include "../../CodeGen/RegAlloc/RegAllocCommon.h" // FIXME! @@ -940,10 +941,19 @@ void UltraSparcRegInfo::colorCallArgs(MachineInstr *CallMI, // for(unsigned i=0; i < ReorderedVec.size(); i++) CallAI->InstrnsBefore.push_back( ReorderedVec[i] ); + + //Insert machine instructions before and after call into the + //call instructions map --- Anand + const CallInst *callInst = argDesc->getCallInst(); + MachineCodeForInstruction &mvec = MachineCodeForInstruction::get(callInst); + mvec.insert(mvec.begin(), CallAI->InstrnsBefore.begin(), + CallAI->InstrnsBefore.end()); + mvec.insert(mvec.end(), CallAI->InstrnsAfter.begin(), + CallAI->InstrnsAfter.end()); } //--------------------------------------------------------------------------- -// This method is called for an LLVM return instruction to identify which +// this method is called for an LLVM return instruction to identify which // values will be returned from this method and to suggest colors. //--------------------------------------------------------------------------- void UltraSparcRegInfo::suggestReg4RetValue(MachineInstr *RetMI, |