mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
Print the LSBs of a SlotIndex symbolically using letters referring to the
[L]oad, [u]se, [d]ef, or [S]tore slots. This makes it easier to see if two indices refer to the same instruction, avoiding mental mod 4 calculations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
deca052d9d
commit
eec418d26f
@ -213,9 +213,11 @@ void SlotIndexes::dump() const {
|
|||||||
|
|
||||||
// Print a SlotIndex to a raw_ostream.
|
// Print a SlotIndex to a raw_ostream.
|
||||||
void SlotIndex::print(raw_ostream &os) const {
|
void SlotIndex::print(raw_ostream &os) const {
|
||||||
os << getIndex();
|
os << entry().getIndex();
|
||||||
if (isPHI())
|
if (isPHI())
|
||||||
os << "*";
|
os << "*";
|
||||||
|
else
|
||||||
|
os << "LudS"[getSlot()];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump a SlotIndex to stderr.
|
// Dump a SlotIndex to stderr.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user