[llvm-dev] LiveInterval and Loop Info

Matthias Braun via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 4 13:20:01 PDT 2015

As the name implies this function will only give you a basic block if the LiveInterval/LiveRange is completely contained within a single basic block, for the more general cases you will need the other functions.

- Matthias

> On Sep 4, 2015, at 11:43 AM, Natanael Ramos <naelr8 at gmail.com> wrote:
> 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 <mailto: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 <mailto: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 <mailto:llvm-dev at lists.llvm.org>
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <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/67399b43/attachment.html>

More information about the llvm-dev mailing list