================
@@ -590,8 +592,31 @@ void NVPTXAsmPrinter::emitInstruction(const MachineInstr
*MI) {
void NVPTXAsmPrinter::lowerToMCInst(const MachineInstr *MI, MCInst &OutMI) {
OutMI.setOpcode(MI->getOpcode());
- for (const auto MO : MI->operands())
- OutMI.addOperand(lowerOperand(MO));
+ for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I)
----------------
AlexMaclean wrote:
If we use an MCSymbol in the machine instruction, we should not need to change
either.
https://github.com/llvm/llvm-project/pull/205639
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits