forked from OSchip/llvm-project
-modified machine operand class - took regNum out of union to set regNum after
retister allocation. llvm-svn: 594
This commit is contained in:
parent
970886e738
commit
c56b9552eb
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue