<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 21, 2016 at 4:33 AM, Krzysztof Parzyszek <span dir="ltr"><<a href="mailto:kparzysz@codeaurora.org" target="_blank">kparzysz@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 1/20/2016 6:27 PM, Rail Shafigulin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm slightly confused. Can you elaborate on what it means to have<br>
bundles that are mixed with instructions that are not bundled?<br>
<br>
What I need for my target is to bundle every instruction, even if it is<br>
solo instruction. What would be the best way to achieve this? Current<br>
idea is to add a NOP instruction if MI has only one instruction in it.<br>
Is it possible?<br>
<br>
Any help is appreciated.<br>
</blockquote>
<br></span>
You can have<br>
<br>
BUNDLE          // 2 instructions in a bundle<br>
  instruction1  //<br>
  instruction2  //<br>
instruction3    // single, non-bundled instruction<br>
BUNDLE          // another bundle with 2 instructions<br>
  instruction4  //<br>
  instruction5  //<br>
<br>
instruction3 is not bundled with anything, and it's between two other bundles---that's what I meant by "mixing".<br>
<br>
<br>
On Hexagon, on the hardware level, every instruction belongs to some packet, whether it's a packet with one or more instructions.  What we do is that we encode single instructions as single-instruction packets, but that happens after the IR is lowered to the MC form.<div class="HOEnZb"><div class="h5"><br>
<br>
-Krzysztof<br>
<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation<br>
</div></div></blockquote></div><br>Just out of curiosity, why Hexagon doesn't create a bundle with a single instruction earlier? Wouldn't it be more consistent (and convinient) to bundle all the instructions in one place (at MachineInstr level) rather then handle it in different places?<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div>