assert((Size+IgnoreCount) == MI->getBundleSize() && "Corrupt Bundle!");
for (unsigned Index = 0; Index < Size; Index++) {
HexagonMCInst MCI;
- MCI.setPacketStart(Index == 0);
+ MCI.setPacketBegin(Index == 0);
MCI.setPacketEnd(Index == (Size-1));
HexagonLowerToMC(BundleMIs[Index], MCI, *this);
else {
HexagonMCInst MCI;
if (MI->getOpcode() == Hexagon::ENDLOOP0) {
- MCI.setPacketStart(true);
+ MCI.setPacketBegin(true);
MCI.setPacketEnd(true);
}
HexagonLowerToMC(MI, MCI, *this);
// 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;
StringRef NoAnnot;
Nop.setOpcode (Hexagon::A2_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);
const MCInstrDesc *MCID;
// Packet start and end markers
- unsigned packetStart: 1, packetEnd: 1;
+ unsigned packetBegin: 1, packetEnd: 1;
public:
explicit HexagonMCInst():
- MCInst(), MCID(nullptr), packetStart(0), packetEnd(0) {};
+ MCInst(), MCID(nullptr), packetBegin(0), packetEnd(0) {};
HexagonMCInst(const MCInstrDesc& mcid):
- MCInst(), MCID(&mcid), packetStart(0), packetEnd(0) {};
+ MCInst(), MCID(&mcid), packetBegin(0), packetEnd(0) {};
- bool isPacketStart() const { return (packetStart); };
+ bool isPacketBegin() const { return (packetBegin); };
bool isPacketEnd() const { return (packetEnd); };
- void setPacketStart(bool Y) { packetStart = Y; };
+ void setPacketBegin(bool Y) { packetBegin = Y; };
void setPacketEnd(bool Y) { packetEnd = Y; };
- void resetPacket() { setPacketStart(false); setPacketEnd(false); };
+ void resetPacket() { setPacketBegin(false); setPacketEnd(false); };
// Return the slots used by the insn.
unsigned getUnits(const HexagonTargetMachine* TM) const;