From c393c57afc971f88f2ad4618a921c359c0c57969 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Aug 2003 22:09:31 +0000 Subject: [PATCH] Add a map git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7620 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAlloc/PhyRegAlloc.h | 4 ++++ lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index d58feb60607..e30cc8f9cc9 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -69,6 +69,10 @@ class PhyRegAlloc { // AddedInstrMap - Used to store instrns added in this phase std::map AddedInstrMap; + // ScratchRegsUsed - Contains scratch register uses for a particular MI. + typedef std::multimap ScratchRegsUsedTy; + ScratchRegsUsedTy ScratchRegsUsed; + AddedInstrns AddedInstrAtEntry; // to store instrns added at entry LoopInfo *LoopDepthCalc; // to calculate loop depths diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index d58feb60607..e30cc8f9cc9 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -69,6 +69,10 @@ class PhyRegAlloc { // AddedInstrMap - Used to store instrns added in this phase std::map AddedInstrMap; + // ScratchRegsUsed - Contains scratch register uses for a particular MI. + typedef std::multimap ScratchRegsUsedTy; + ScratchRegsUsedTy ScratchRegsUsed; + AddedInstrns AddedInstrAtEntry; // to store instrns added at entry LoopInfo *LoopDepthCalc; // to calculate loop depths