[llvm-dev] a bundle with one instruction

Rail Shafigulin via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 20 13:23:48 PST 2016


Is there a way to place a bundle a BUNDLE instruction into a packet with
one instruction? Current code to end packet doesn't handle this case:

// endPacket - End the current packet, bundle packet instructions and reset
// DFA state.
void VLIWPacketizerList::endPacket(MachineBasicBlock *MBB,
                                         MachineInstr *MI) {
  if (CurrentPacketMIs.size() > 1) {
    MachineInstr *MIFirst = CurrentPacketMIs.front();
    finalizeBundle(*MBB, MIFirst, MI);
  }
  CurrentPacketMIs.clear();
  ResourceTracker->clearResources();
}

My initial idea was to simply add a NOP instruction to the
CurrentPacketMIs, but it is proving to be more difficult than I thought.
Would anyone care to help?

-- 
Rail Shafigulin
Software Engineer
Esencia Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/456081a3/attachment.html>


More information about the llvm-dev mailing list