[llvm-dev] LiveInterval and Loop Info

Matthias Braun via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 4 10:26:10 PDT 2015


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>


More information about the llvm-dev mailing list