mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Add MachineOperand IsInternalRead flag.
This flag is used when bundling machine instructions. It indicates whether the operand reads a value defined inside or outside its bundle. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -178,6 +178,7 @@ void MachineOperand::ChangeToRegister(unsigned Reg, bool isDef, bool isImp,
|
||||
IsKill = isKill;
|
||||
IsDead = isDead;
|
||||
IsUndef = isUndef;
|
||||
IsInternalRead = false;
|
||||
IsEarlyClobber = false;
|
||||
IsDebug = isDebug;
|
||||
SubReg = 0;
|
||||
@@ -256,14 +257,26 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
|
||||
NeedComma = true;
|
||||
}
|
||||
|
||||
if (isKill() || isDead() || isUndef()) {
|
||||
if (isKill() || isDead() || isUndef() || isInternalRead()) {
|
||||
if (NeedComma) OS << ',';
|
||||
if (isKill()) OS << "kill";
|
||||
if (isDead()) OS << "dead";
|
||||
NeedComma = false;
|
||||
if (isKill()) {
|
||||
OS << "kill";
|
||||
NeedComma = true;
|
||||
}
|
||||
if (isDead()) {
|
||||
OS << "dead";
|
||||
NeedComma = true;
|
||||
}
|
||||
if (isUndef()) {
|
||||
if (isKill() || isDead())
|
||||
OS << ',';
|
||||
if (NeedComma) OS << ',';
|
||||
OS << "undef";
|
||||
NeedComma = true;
|
||||
}
|
||||
if (isInternalRead()) {
|
||||
if (NeedComma) OS << ',';
|
||||
OS << "internal";
|
||||
NeedComma = true;
|
||||
}
|
||||
}
|
||||
OS << '>';
|
||||
|
||||
Reference in New Issue
Block a user