[LLVMdev] DFAPacketizer with StateTrans != 0 Assertion

Ivan Llopard ivanllopard at gmail.com
Tue Jun 12 09:25:19 PDT 2012


Hi sam,

On 12/06/2012 17:30, sam wrote:
> Hi Ivan,
>
> 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?

No. AFAIK, the DFA expects the instruction to have well defined 
itinerary with its resource utilisation. Does your first instruction 
have an defined itinerary?

Ivan

>
> thanks
> sam
>
> On 12/06/12 15:48, Ivan Llopard [via LLVM] wrote:
>> Hi Sam,
>>
>> On 12/06/2012 15:33, sam wrote:
>> > Hi,
>> >
>> > I'm trying to get the DFAPacketizer to work for my target but with any
>> > instruction I get the
>> > 'Assertion `CachedTable.count(StateTrans) != 0' failed' error and 
>> it crashes
>> > out before packeting a single instruction.
>>
>> Do you reserve some resource without verification?
>>
>> Note that reserveResources() should be called iff canReserveResources()
>> is true (the call order is important here) even for the trivial case (0
>> instructions in the packet). See VLIWPacketizerList as an example on how
>> to use the API's.
>>
>> Ivan
>>
>> >
>> > I have a *GenDFAPacketizer.inc file and my packetizer pass checks 
>> that the
>> > table is not empty before proceeding. I also have a schedule file 
>> with my
>> > functional units and itineraries listed. Can anyone think of what I 
>> may have
>> > missed to cause this error?
>> >
>> > Cheers,
>> > sam
>> >
>> > --
>> > View this message in context: 
>> http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105.html
>> > Sent from the LLVM - Dev mailing list archive at Nabble.com.
>> > _______________________________________________
>> > LLVM Developers mailing list
>> > [hidden email] </user/SendEmail.jtp?type=node&node=46108&i=0> 
>> http://llvm.cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>> _______________________________________________
>> LLVM Developers mailing list
>> [hidden email] </user/SendEmail.jtp?type=node&node=46108&i=1> 
>> http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the 
>> discussion below:
>> http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105p46108.html 
>>
>> To unsubscribe from DFAPacketizer with StateTrans != 0 Assertion, 
>> click here.
>> NAML 
>> <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> 
>>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: DFAPacketizer with StateTrans != 0 
> Assertion 
> <http://llvm.1065342.n5.nabble.com/DFAPacketizer-with-StateTrans-0-Assertion-tp46105p46112.html>
> Sent from the LLVM - Dev mailing list archive 
> <http://llvm.1065342.n5.nabble.com/LLVM-Dev-f3.html> at Nabble.com.
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120612/82ec1f19/attachment.html>


More information about the llvm-dev mailing list