Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 529118e

Browse files
author
Chris Dewhurst
committed
[Sparc] Extend the assembler printing support for Sparc back-end.
Allows display of floating-point registers and display of assembler meta-data output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270829 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 8ac7be5 commit 529118e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Target/Sparc/SparcAsmPrinter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ void SparcAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
375375
O << DL.getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << "_"
376376
<< MO.getIndex();
377377
break;
378+
case MachineOperand::MO_Metadata:
379+
MO.getMetadata()->printAsOperand(O, MMI->getModule());
380+
break;
378381
default:
379382
llvm_unreachable("<unknown operand type>");
380383
}
@@ -416,6 +419,7 @@ bool SparcAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
416419
default:
417420
// See if this is a generic print operand
418421
return AsmPrinter::PrintAsmOperand(MI, OpNo, AsmVariant, ExtraCode, O);
422+
case 'f':
419423
case 'r':
420424
break;
421425
}

0 commit comments

Comments
 (0)