Add a map
authorChris Lattner <sabre@nondot.org>
Tue, 5 Aug 2003 22:09:31 +0000 (22:09 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 5 Aug 2003 22:09:31 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7620 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAlloc/PhyRegAlloc.h
lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h

index d58feb606070c351b7899c3dd22c31cbfdfe3eb8..e30cc8f9cc99e3aeabc58b667241020b07345a8b 100644 (file)
@@ -69,6 +69,10 @@ class PhyRegAlloc {
   // AddedInstrMap - Used to store instrns added in this phase
   std::map<const MachineInstr *, AddedInstrns> AddedInstrMap;
 
+  // ScratchRegsUsed - Contains scratch register uses for a particular MI.
+  typedef std::multimap<const MachineInstr*, int> ScratchRegsUsedTy;
+  ScratchRegsUsedTy ScratchRegsUsed;
+
   AddedInstrns AddedInstrAtEntry;       // to store instrns added at entry
   LoopInfo *LoopDepthCalc;              // to calculate loop depths 
 
index d58feb606070c351b7899c3dd22c31cbfdfe3eb8..e30cc8f9cc99e3aeabc58b667241020b07345a8b 100644 (file)
@@ -69,6 +69,10 @@ class PhyRegAlloc {
   // AddedInstrMap - Used to store instrns added in this phase
   std::map<const MachineInstr *, AddedInstrns> AddedInstrMap;
 
+  // ScratchRegsUsed - Contains scratch register uses for a particular MI.
+  typedef std::multimap<const MachineInstr*, int> ScratchRegsUsedTy;
+  ScratchRegsUsedTy ScratchRegsUsed;
+
   AddedInstrns AddedInstrAtEntry;       // to store instrns added at entry
   LoopInfo *LoopDepthCalc;              // to calculate loop depths