mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Handle registers a bit more efficiently
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -106,8 +106,14 @@ namespace {
|
|||||||
|
|
||||||
// This method is used by the tablegen'erated instruction printer.
|
// This method is used by the tablegen'erated instruction printer.
|
||||||
void printOperand(const MachineOperand &MO, MVT::ValueType VT) {
|
void printOperand(const MachineOperand &MO, MVT::ValueType VT) {
|
||||||
|
if (MO.getType() == MachineOperand::MO_MachineRegister) {
|
||||||
|
assert(MRegisterInfo::isPhysicalRegister(MO.getReg())&&"Not physref??");
|
||||||
|
// Bug Workaround: See note in Printer::doInitialization about %.
|
||||||
|
O << "%" << TM.getRegisterInfo()->get(MO.getReg()).Name;
|
||||||
|
} else {
|
||||||
printOp(MO);
|
printOp(MO);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void printImplUsesBefore(const TargetInstrDescriptor &Desc);
|
void printImplUsesBefore(const TargetInstrDescriptor &Desc);
|
||||||
bool printImplDefsBefore(const TargetInstrDescriptor &Desc);
|
bool printImplDefsBefore(const TargetInstrDescriptor &Desc);
|
||||||
|
Reference in New Issue
Block a user