Displaying 12 results from an estimated 12 matches for "classllvm_1_1loopinfo".
2012 Apr 26
2
[LLVMdev] Detect if a basicblock is part of a loop
Hi,
I'm trying to detect if a basicblock is part of a loop or not.
I tried the llvm::LoopInfo like that (http://llvm.org/docs/doxygen/html/classllvm_1_1LoopInfo.html#a4abca289c73cd09487e05d11d9f7d877):
LoopInfo *loop = new LoopInfo();
bool isLoop = loop->getLoopFor(myBB); // getLoopFor - Return the inner most loop that BB lives in. If a basic block is in no loop (for example the entry node), null is returned. See doxygen
But getLoopFor() always retur...
2011 Feb 28
2
[LLVMdev] LoopInfo of a basic block
...oopInfo>();
> }
>
> 2) In your runOnLoop() method get the analysis.
>
> LoopPass *LI = &getAnalysis<LoopInfo>();
>
> Now, you can do LI->getLoopFor(...)
To add to what Devang has said, you may find the doxygen docs on
LoopInfo helpful:
http://llvm.org/doxygen/classllvm_1_1LoopInfo.html
-- John T.
>
> -
> Devang
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110228/f134922d/attachment.html>
2010 Apr 19
0
[LLVMdev] Free Variables In a Loop.
...mous. If you want to see if an SSA value is defined within a
loop, you would use the LoopInfo pass to determine if the basic block
containing the instruction defining the value of interest belongs to
the loop that interests you.
Information on LoopInfo can be found at
http://llvm.org/doxygen/classllvm_1_1LoopInfo.html.
-- John T.
>
> Thanks,
> Rohith.
2010 Apr 18
2
[LLVMdev] Free Variables In a Loop.
Hi ,
I'm working on a project in which i need to find out all free variables
in a loop. I need to find all variables used inside a loop and that are not
declared(allocated) in the loop. I'm confused about what symbol tables to
use to get hold of such variables.
Thanks,
Rohith.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Feb 28
0
[LLVMdev] LoopInfo of a basic block
...; 2) In your runOnLoop() method get the analysis.
>
> LoopPass *LI = &getAnalysis<LoopInfo>();
>
> Now, you can do LI->getLoopFor(...)
>
>
> To add to what Devang has said, you may find the doxygen docs on LoopInfo
> helpful:
>
> http://llvm.org/doxygen/classllvm_1_1LoopInfo.html
>
> -- John T.
>
>
>
> -
> Devang
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110228/b8061c64/attachment.html>
2012 Apr 26
0
[LLVMdev] Detect if a basicblock is part of a loop
...ation you desire.
-Hal
On Thu, 26 Apr 2012 14:02:04 +0000
Rinaldini Julien <julien.rinaldini at heig-vd.ch> wrote:
> Hi,
>
> I'm trying to detect if a basicblock is part of a loop or not.
>
> I tried the llvm::LoopInfo like that
> (http://llvm.org/docs/doxygen/html/classllvm_1_1LoopInfo.html#a4abca289c73cd09487e05d11d9f7d877):
>
> LoopInfo *loop = new LoopInfo();
> bool isLoop = loop->getLoopFor(myBB); // getLoopFor - Return the
> inner most loop that BB lives in. If a basic block is in no loop (for
> example the entry node), null is returned. See doxygen
>...
2011 Feb 28
1
[LLVMdev] LoopInfo of a basic block
...analysis.
>>
>> LoopPass *LI = &getAnalysis<LoopInfo>();
>>
>> Now, you can do LI->getLoopFor(...)
>>
>>
>> To add to what Devang has said, you may find the doxygen docs on LoopInfo
>> helpful:
>>
>> http://llvm.org/doxygen/classllvm_1_1LoopInfo.html
>>
>> -- John T.
>>
>>
>>
>> -
>> Devang
>>
>>
>>
>>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.u...
2012 Apr 26
2
[LLVMdev] Detect if a basicblock is part of a loop
...en <julien.rinaldini at heig-vd.ch (mailto:julien.rinaldini at heig-vd.ch)> wrote:
>
> > Hi,
> >
> > I'm trying to detect if a basicblock is part of a loop or not.
> >
> > I tried the llvm::LoopInfo like that
> > (http://llvm.org/docs/doxygen/html/classllvm_1_1LoopInfo.html#a4abca289c73cd09487e05d11d9f7d877):
> >
> > LoopInfo *loop = new LoopInfo();
> > bool isLoop = loop->getLoopFor(myBB); // getLoopFor - Return the
> > inner most loop that BB lives in. If a basic block is in no loop (for
> > example the entry node), null is ret...
2010 Apr 19
1
[LLVMdev] Free Variables In a Loop.
...if an SSA value is defined within a
> loop, you would use the LoopInfo pass to determine if the basic block
> containing the instruction defining the value of interest belongs to
> the loop that interests you.
>
> Information on LoopInfo can be found at
> http://llvm.org/doxygen/classllvm_1_1LoopInfo.html.
>
> -- John T.
>
> >
> > Thanks,
> > Rohith.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
--
Ad...
2011 Feb 28
2
[LLVMdev] LoopInfo of a basic block
Hi all,
How Can I get the Loops around an Instruction?
I know I can get the basic block of an instruction using inst.getParent()
which returns a BasicBlock*. Now I want to use the getLoopFor(BasicBlock)
method of the class LoopInfo.
But I dont know how to get the LoopInfo.
BasicBlock* bb = inst.getParent();
(... what should I add here?)
Loop* innerloop = LI -> getLoopFor(bb):
Thanks.
2011 Feb 28
0
[LLVMdev] LoopInfo of a basic block
On Feb 28, 2011, at 2:35 PM, Naznin Fauzia wrote:
> Hi all,
>
> How Can I get the Loops around an Instruction?
>
> I know I can get the basic block of an instruction using inst.getParent() which returns a BasicBlock*. Now I want to use the getLoopFor(BasicBlock) method of the class LoopInfo.
> But I dont know how to get the LoopInfo.
>
> BasicBlock* bb =
2012 Apr 26
0
[LLVMdev] Detect if a basicblock is part of a loop
...re.
-Hal
On Thu, 26 Apr 2012 14:02:04 +0000
Rinaldini Julien <julien.rinaldini at heig-vd.ch<mailto:julien.rinaldini at heig-vd.ch>> wrote:
Hi,
I'm trying to detect if a basicblock is part of a loop or not.
I tried the llvm::LoopInfo like that
(http://llvm.org/docs/doxygen/html/classllvm_1_1LoopInfo.html#a4abca289c73cd09487e05d11d9f7d877):
LoopInfo *loop = new LoopInfo();
bool isLoop = loop->getLoopFor(myBB); // getLoopFor - Return the
inner most loop that BB lives in. If a basic block is in no loop (for
example the entry node), null is returned. See doxygen
But getLoopFor() always return...