Rail Shafigulin via llvm-dev
2016-Jan-20 21:23 UTC
[llvm-dev] a bundle with one instruction
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>
Krzysztof Parzyszek via llvm-dev
2016-Jan-20 21:26 UTC
[llvm-dev] a bundle with one instruction
On 1/20/2016 3:23 PM, Rail Shafigulin via llvm-dev wrote:> 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:No. Bundles with single instructions are not allowed, but bundles can be mixed with instructions that are not bundled. -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Rail Shafigulin via llvm-dev
2016-Jan-21 00:27 UTC
[llvm-dev] a bundle with one instruction
> No. Bundles with single instructions are not allowed, but bundles can be > mixed with instructions that are not bundled. > > -Krzysztof > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted > by The Linux Foundation > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >I'm slightly confused. Can you elaborate on what it means to have bundles that are mixed with instructions that are not bundled? What I need for my target is to bundle every instruction, even if it is solo instruction. What would be the best way to achieve this? Current idea is to add a NOP instruction if MI has only one instruction in it. Is it possible? Any help is appreciated. -- Rail Shafigulin Software Engineer Esencia Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/e19dec67/attachment.html>