// Ending a harware loop is different from ending an regular packet.
assert(MI->isPacketEnd() && "Loop-end must also end the packet");
- if (MI->isPacketStart()) {
+ if (MI->isPacketBegin()) {
// There must be a packet to end a loop.
// FIXME: when shuffling is always run, this shouldn't be needed.
- HexagonMCInst Nop;
+ HexagonMCInst Nop (Hexagon::NOP);
StringRef NoAnnot;
- Nop.setOpcode (Hexagon::NOP);
- Nop.setPacketStart (MI->isPacketStart());
+ Nop.setPacketBegin (MI->isPacketBegin());
printInst (&Nop, O, NoAnnot);
}
}
else {
// Prefix the insn opening the packet.
- if (MI->isPacketStart())
+ if (MI->isPacketBegin())
O << PacketPadding << startPacket << '\n';
printInstruction(MI, O);