Hello to all LLVM Developers. Given a object from a LiveInterval class, is there any way to know if this Live Interval is part or is inside a loop? Att -- Natanael Ramos Membro do corpo discente de Ciência da Computação pelo Instituto Federal de Minas Gerais - Campus Formiga -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150903/26e6b7b0/attachment.html>
There is no direct support for this, but you can use LiveIntervalAnalysis::getMBBStartIndex()/getMBBEndIndex()/getMBBFromIndex() to relate the SlotIndexes used in the LiveIntervals to MachineBasicBlocks which in turn you can relate to your MachineLoopInfo. - Matthias> On Sep 3, 2015, at 10:47 AM, Natanael Ramos via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hello to all LLVM Developers. > > Given a object from a LiveInterval class, is there any way to know if this Live Interval is part or is inside a loop? > > Att > > -- > Natanael Ramos > Membro do corpo discente de Ciência da Computação pelo Instituto Federal de > Minas Gerais - Campus Formiga > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150904/420c6388/attachment.html>
Thanks Matthias I can also use the method intervalIsInOneMBB() from LiveIntervals class to relate a LiveInterval to a MachineBasicBlock, right? Em 04/09/2015 2:26 PM, "Matthias Braun" <mbraun at apple.com> escreveu:> There is no direct support for this, but you can use > LiveIntervalAnalysis::getMBBStartIndex()/getMBBEndIndex()/getMBBFromIndex() > to relate the SlotIndexes used in the LiveIntervals to MachineBasicBlocks > which in turn you can relate to your MachineLoopInfo. > > - Matthias > > On Sep 3, 2015, at 10:47 AM, Natanael Ramos via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > Hello to all LLVM Developers. > > Given a object from a LiveInterval class, is there any way to know if this > Live Interval is part or is inside a loop? > > Att > > -- > Natanael Ramos > Membro do corpo discente de Ciência da Computação pelo Instituto Federal > de > Minas Gerais - Campus Formiga > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150904/ac2ce639/attachment.html>