<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi sam,<br>
    <br>
    On 12/06/2012 17:30, sam wrote:
    <blockquote cite="mid:4FD7607F.1020404@lboro.ac.uk" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hi Ivan,<br>
      <br>
      The assertion was happening because I wasn't checking after the
      first attempt failed. The first packet was failing and so it was
      ended, and then the packetizer attempted to add it to the next
      packet without checking for available resources. However this
      highlights probably the real problem - my packetizer is unable to
      find resources for the first instruction, or any of my
      instructions for that matter. Have you ever seen this problem
      before?<br>
    </blockquote>
    <br>
    No. AFAIK, the DFA expects the instruction to have well defined
    itinerary with its resource utilisation. Does your first instruction
    have an defined itinerary?<br>
    <br>
    Ivan<br>
    <br>
    <blockquote cite="mid:4FD7607F.1020404@lboro.ac.uk" type="cite"> <br>
      thanks<br>
      sam<br>
      <br>
      On 12/06/12 15:48, Ivan Llopard [via LLVM] wrote:
      <blockquote cite="mid:4FD756C1.7070806@gmail.com" type="cite"> Hi
        Sam, <br>
        <br>
        On 12/06/2012 15:33, sam wrote: <br>
        > Hi, <br>
        > <br>
        > I'm trying to get the DFAPacketizer to work for my target
        but with any <br>
        > instruction I get the <br>
        > 'Assertion `CachedTable.count(StateTrans) != 0' failed'
        error and it crashes <br>
        > out before packeting a single instruction. <br>
        <br>
        Do you reserve some resource without verification? <br>
        <br>
        Note that reserveResources() should be called iff
        canReserveResources() <br>
        is true (the call order is important here) even for the trivial
        case (0 <br>
        instructions in the packet). See VLIWPacketizerList as an
        example on how <br>
        to use the API's. <br>
        <br>
        Ivan <br>
        <div class="shrinkable-quote"><br>
          > <br>
          > I have a *GenDFAPacketizer.inc file and my packetizer
          pass checks that the <br>
          > table is not empty before proceeding. I also have a
          schedule file with my <br>
          > functional units and itineraries listed. Can anyone think
          of what I may have <br>
          > missed to cause this error? <br>
          > <br>
          > Cheers, <br>
          > sam <br>
          > <br>
          > -- <br>
          > View this message in context: <a moz-do-not-send="true"
href="http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105.html"
            target="_top" rel="nofollow" link="external">http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105.html</a><br>
          > Sent from the LLVM - Dev mailing list archive at
          Nabble.com. <br>
          > _______________________________________________ <br>
          > LLVM Developers mailing list <br>
          > <a moz-do-not-send="true"
            href="/user/SendEmail.jtp?type=node&node=46108&i=0"
            target="_top" rel="nofollow" link="external">[hidden email]</a>
                  <a moz-do-not-send="true"
            href="http://llvm.cs.uiuc.edu" target="_top" rel="nofollow"
            link="external">http://llvm.cs.uiuc.edu</a><br>
          > <a moz-do-not-send="true"
            href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
            target="_top" rel="nofollow" link="external">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div>
        _______________________________________________ <br>
        LLVM Developers mailing list <br>
        <a moz-do-not-send="true"
          href="/user/SendEmail.jtp?type=node&node=46108&i=1"
          target="_top" rel="nofollow" link="external">[hidden email]</a>
                <a moz-do-not-send="true"
          href="http://llvm.cs.uiuc.edu" target="_top" rel="nofollow"
          link="external">http://llvm.cs.uiuc.edu</a><br>
        <a moz-do-not-send="true"
          href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
          target="_top" rel="nofollow" link="external">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
        <br>
        <br>
        <hr color="#cccccc" noshade="noshade" size="1">
        <div style="color:#444; font: 12px
          tahoma,geneva,helvetica,arial,sans-serif;">
          <div style="font-weight:bold">If you reply to this email, your
            message will be added to the discussion below:</div>
          <a moz-do-not-send="true"
href="http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105p46108.html"
            target="_top" rel="nofollow" link="external">http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105p46108.html</a>
        </div>
        <div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
          To unsubscribe from DFAPacketizer with StateTrans != 0
          Assertion, <a moz-do-not-send="true" href="" target="_top"
            rel="nofollow" link="external">click here</a>.<br>
          <a moz-do-not-send="true"
href="http://llvm.1065342.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml"
            rel="nofollow" style="font:9px serif" target="_top"
            link="external">NAML</a> </div>
      </blockquote>
      <br>
      <br>
      <hr align="left" width="300">
      View this message in context: <a moz-do-not-send="true"
href="http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105p46112.html">Re:
        DFAPacketizer with StateTrans != 0 Assertion</a><br>
      Sent from the <a moz-do-not-send="true"
        href="http://llvm.1065342.n5.nabble.com/LLVM-Dev-f3.html">LLVM -
        Dev mailing list archive</a> at Nabble.com.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
  </body>
</html>