mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
adjust last patch per review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfe2f407db
commit
e009180f2b
@ -68,11 +68,9 @@ private:
|
|||||||
/// This is only valid on definitions of registers.
|
/// This is only valid on definitions of registers.
|
||||||
bool IsDead : 1;
|
bool IsDead : 1;
|
||||||
|
|
||||||
/// IsEarlyClobber flag - this is only valid for MO_Register operands in
|
/// IsEarlyClobber - True if this MO_Register operand is marked earlyclobber
|
||||||
/// an inline asm.
|
/// in an inline asm. Flag is not valid for any other case. See gcc doc
|
||||||
|
/// for description of earlyclobber.
|
||||||
/// IsEarlyClobber - True if this operand is marked earlyclobber in an
|
|
||||||
/// inline asm. See gcc doc for description of earlyclobber.
|
|
||||||
bool IsEarlyClobber : 1;
|
bool IsEarlyClobber : 1;
|
||||||
|
|
||||||
/// SubReg - Subregister number, only valid for MO_Register. A value of 0
|
/// SubReg - Subregister number, only valid for MO_Register. A value of 0
|
||||||
@ -318,8 +316,7 @@ public:
|
|||||||
/// the specified value. If an operand is known to be an register already,
|
/// the specified value. If an operand is known to be an register already,
|
||||||
/// the setReg method should be used.
|
/// the setReg method should be used.
|
||||||
void ChangeToRegister(unsigned Reg, bool isDef, bool isImp = false,
|
void ChangeToRegister(unsigned Reg, bool isDef, bool isImp = false,
|
||||||
bool isKill = false, bool isDead = false,
|
bool isKill = false, bool isDead = false);
|
||||||
bool isEarlyClobber = false);
|
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Construction methods.
|
// Construction methods.
|
||||||
|
@ -104,11 +104,11 @@ void MachineOperand::ChangeToImmediate(int64_t ImmVal) {
|
|||||||
/// the specified value. If an operand is known to be an register already,
|
/// the specified value. If an operand is known to be an register already,
|
||||||
/// the setReg method should be used.
|
/// the setReg method should be used.
|
||||||
void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp,
|
void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp,
|
||||||
bool isKill, bool isDead,
|
bool isKill, bool isDead) {
|
||||||
bool isEarlyClobber) {
|
|
||||||
// If this operand is already a register operand, use setReg to update the
|
// If this operand is already a register operand, use setReg to update the
|
||||||
// register's use/def lists.
|
// register's use/def lists.
|
||||||
if (isRegister()) {
|
if (isRegister()) {
|
||||||
|
assert(!isEarlyClobber());
|
||||||
setReg(Reg);
|
setReg(Reg);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, change this to a register and set the reg#.
|
// Otherwise, change this to a register and set the reg#.
|
||||||
@ -127,7 +127,7 @@ void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp,
|
|||||||
IsImp = isImp;
|
IsImp = isImp;
|
||||||
IsKill = isKill;
|
IsKill = isKill;
|
||||||
IsDead = isDead;
|
IsDead = isDead;
|
||||||
IsEarlyClobber = isEarlyClobber;
|
IsEarlyClobber = false;
|
||||||
SubReg = 0;
|
SubReg = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user