search for: getmbbfromindex

Displaying 9 results from an estimated 9 matches for "getmbbfromindex".

2008 Feb 08
2
[LLVMdev] Some questions about live intervals
...an.cheng at apple.com> schrieb: > > 1) What is the easiest way to understand which MBB a given > instruction index belongs to? All the required information is > available in the > > MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful > to add a small function getMBBFromIndex() to this class? > > Sure there is a reverse map (actually just a vector) Idx2MBBMap. > Justadd a query. Done. Please find a patch attached to this mail. > > As for (1) and (2), I could implement and provide patches for it, > > if you think this is desirable. > > Ye...
2008 Feb 11
0
[LLVMdev] Some questions about live intervals
Thanks. One question though. Should getMBBFromIndex() assert if given an index out of the range or simply returns a NULL pointer? I would think the later makes it a bit more friendly. Evan On Feb 8, 2008, at 8:59 AM, Roman Levenstein wrote: > Hi Evan, > > Here is a patch for the LiveIntervalAnalysis that we discussed. > > --- E...
2008 Feb 11
2
[LLVMdev] Some questions about live intervals
Hi Evan, --- Evan Cheng <evan.cheng at apple.com> wrote: > Thanks. One question though. Should getMBBFromIndex() assert if given > an index out of the range or simply returns a NULL pointer? I would > think the later makes it a bit more friendly. Yes. It would be more friendly, probably. I can submit such a patch, if you think it suits better. On the other hand I want to mention the following pros...
2008 Feb 12
0
[LLVMdev] Some questions about live intervals
On Feb 10, 2008, at 11:44 PM, Roman Levenstein wrote: > Hi Evan, > > --- Evan Cheng <evan.cheng at apple.com> wrote: > >> Thanks. One question though. Should getMBBFromIndex() assert if given >> an index out of the range or simply returns a NULL pointer? I would >> think the later makes it a bit more friendly. > > Yes. It would be more friendly, probably. I can submit such a patch, > if > you think it suits better. > > On the other hand...
2008 Jan 31
7
[LLVMdev] Some questions about live intervals
...ion of this algorithm and have a few hopefully rather simple questions: 1) What is the easiest way to understand which MBB a given instruction index belongs to? All the required information is available in the MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful to add a small function getMBBFromIndex() to this class? 2) Is there any simple way to iterate over all instructions, where a given live interval is live? This functionality is required by many register allocation algorithms. I think having some special iterator functions for that in the LiveIntervalAnalysis class could be very useful f...
2015 Sep 04
2
LiveInterval and Loop Info
...OneMBB() 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...
2015 Sep 03
2
LiveInterval and Loop Info
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:
2008 Jan 31
0
[LLVMdev] Some questions about live intervals
...e > a few hopefully rather simple questions: > > 1) What is the easiest way to understand which MBB a given instruction > index belongs to? All the required information is available in the > MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful to add > a small function getMBBFromIndex() to this class? > The MachineInstr class has a pointer to its MachineBasicBlock (at least in top-of-tree). Call "getParent()" on the MachineInstr. -bw
2008 Feb 01
0
[LLVMdev] Some questions about live intervals
...a few hopefully rather simple questions: > > 1) What is the easiest way to understand which MBB a given instruction > index belongs to? All the required information is available in the > MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful to > add > a small function getMBBFromIndex() to this class? Sure there is a reverse map (actually just a vector) Idx2MBBMap. Just add a query. > > > 2) Is there any simple way to iterate over all instructions, where a > given live interval is live? This functionality is required by many > register allocation algorithms. I...