From 5cdb12f95819c38e81d51791c79058660f078e4c Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sat, 31 May 2003 07:41:54 +0000 Subject: [PATCH] Minor changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6470 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAlloc/PhyRegAlloc.h | 5 +++++ lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index c55f8e0009b..731eef29c45 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -61,6 +61,10 @@ class PhyRegAlloc : public NonCopyable { const TargetRegInfo &MRI; // Machine Register information const unsigned NumOfRegClasses; // recorded here for efficiency + // Map to indicate whether operands of each MachineInstr have been updated + // according to their assigned colors. This is primarily for debugging and + // could be removed in the long run. + std::map OperandsColoredMap; // AddedInstrMap - Used to store instrns added in this phase std::map AddedInstrMap; @@ -116,6 +120,7 @@ private: void colorIncomingArgs(); void colorCallRetArgs(); void updateMachineCode(); + void updateInstruction(MachineInstr* MInst, BasicBlock* BB); void printLabel(const Value *const Val); void printMachineCode(); diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index c55f8e0009b..731eef29c45 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -61,6 +61,10 @@ class PhyRegAlloc : public NonCopyable { const TargetRegInfo &MRI; // Machine Register information const unsigned NumOfRegClasses; // recorded here for efficiency + // Map to indicate whether operands of each MachineInstr have been updated + // according to their assigned colors. This is primarily for debugging and + // could be removed in the long run. + std::map OperandsColoredMap; // AddedInstrMap - Used to store instrns added in this phase std::map AddedInstrMap; @@ -116,6 +120,7 @@ private: void colorIncomingArgs(); void colorCallRetArgs(); void updateMachineCode(); + void updateInstruction(MachineInstr* MInst, BasicBlock* BB); void printLabel(const Value *const Val); void printMachineCode(); -- 2.50.1