-modified machine operand class - took regNum out of union to set regNum after

retister allocation.

llvm-svn: 594
This commit is contained in:
Ruchira Sasanka 2001-09-15 20:16:41 +00:00
parent 970886e738
commit c56b9552eb
1 changed files with 10 additions and 4 deletions

View File

@ -79,13 +79,12 @@ private:
// ConstantVal for a non-address immediate.
// Virtual register for an SSA operand,
// including hidden operands required for
// the generated machine code.
unsigned int regNum; // register number for an explicit register
// the generated machine code.
int64_t immedVal; // constant value for an explicit constant
};
unsigned int regNum; // register number for an explicit register
// will be set for a value after reg allocation
bool isDef; // is this a defition for the value
// made public for faster access
@ -141,6 +140,13 @@ private:
public:
// replaces the Value with its corresponding physical register afeter
// register allocation is complete
void setRegForValue(unsigned reg) {
assert(opType == MO_VirtualRegister || opType == MO_CCRegister);
regNum = reg;
}
};