Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] null pointer check missing in LoopInfo"
2005 Nov 12
2
[LLVMdev] building LLVM 1.6 on Debian unstable ...
Hi,
Tried to build the 1.6 release on Debian unstable, but ran into link
problems for some utils ...
Copying the messages when building llc, the same error occurs for lli,
llvm-db and some of the examples. Is this a problem with the compiler
version? LLVMSelectionDAG.o itself builds correctly.
make[2]: Entering directory `/home/sameerds/data/llvm-1.6/tools/llc'
llvm[2]: Linking Debug
2005 Nov 12
2
[LLVMdev] building LLVM 1.6 on Debian unstable ...
Marco Matthies wrote:
>> make[2]: Entering directory `/home/sameerds/data/llvm-1.6/tools/llc'
>> llvm[2]: Linking Debug executable llc
>> `.gnu.linkonce.t._ZNK4llvm14TargetLowering12getValueTypeEPKNS_4TypeE'
>> referenced
>> in section `.rodata' of
>> /home/sameerds/data/llvm-1.6/Debug/lib/LLVMSelectionDAG
>> .o: defined in discarded
2005 Nov 15
1
[LLVMdev] doxygen docs
Chris Lattner wrote:
>> I tried generating the docs myself ... doxygen simply refuses to
>> create pages for classes defined in anonymous namespaces in cpp files.
>> I enabled options such as EXTRACT_ALL, EXTRACT_PRIVATE and
>> EXTRACT_LOCAL, but no luck. How is the publicly available
>> documentation generated?
>
> They are generated from the Makefile in
2005 Apr 29
2
[LLVMdev] about AnalysisUsage
Just noticed that quite a few passes like LoopSimplify are implemented
in a single .cpp file ... this makes it impossible to specify
LoopSimplify using the "addRequired" method. Was there any particular
reason to do it this way? I wouldn't mind doing the splitting myself,
though I am not using the CVS versions right now.
Also, it would be nice to have support for some sort of a
2005 Apr 29
2
[LLVMdev] about AnalysisUsage
On Fri, Apr 29, 2005 at 08:10:17AM -0500, Chris Lattner wrote:
> AU.addRequiredID(LoopSimplifyID);
>
> "LoopSimplifyID" is a marker that is used to identify the pass, which is
> exported from the .cpp file.
I'll have to declare a PassInfo* called LoopSimplifyID inside
namespace llvm, in order for that to compile correctly, right? I was
wondering why not simply
2005 Apr 02
2
[LLVMdev] newbie question - selecting the write kind of pass
I want to create a simple map from a Value to the instruction that
defines it. Such a map is present inside SchedGraph, but I need it in
a much simpler context.
If I got it right, I create a new AnalysisGroup, and write a pass that
implements it. What kind of pass should I derive it from? The mapping
only makes sense within a function, so FunctionPass seems to be the
right choice ... is that
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
2
[LLVMdev] LoopInfo of a basic block
On 2/28/11 4:43 PM, Devang Patel wrote:
>
> 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
2005 Nov 15
4
[LLVMdev] doxygen docs
Hi,
The docs available on illuvium.com are different from the one's present
in the doxygen tarball on the same page ... can the tarball be generated
from the same docs as the browseable version? I considered crawling the
illuvium.com site, but it would be better to simply have a tarball
available.
I tried generating the docs myself ... doxygen simply refuses to create
pages for classes
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 =
2010 Jun 16
2
[LLVMdev] Loopinfo Analysis
Hello,
I have a question regrading the analysis pass that generates loop info from an .ll code. My previous understanding was there will be just one loop header(in the loop info) for a particular loop. But, when i use isLoopHeader() member function from the loop info class I get 'true' return value for two different basic blocks. Note both basic blocks are loop conditional block(break
2011 Feb 28
0
[LLVMdev] LoopInfo of a basic block
Thanks Devang and John. My pass is actually a loop pass, not a function
pass. So, I couldnt override the getAnalysisUsage.
I am in a loop pass, I know the outermost loop. Now How can I get the
loopInfo from here? I couldn't find helpful methods in the LoopInfo class
documents.
On Mon, Feb 28, 2011 at 5:52 PM, John Criswell <criswell at illinois.edu>wrote:
> On 2/28/11 4:43 PM,
2011 Feb 28
1
[LLVMdev] LoopInfo of a basic block
On Mon, Feb 28, 2011 at 6:04 PM, Naznin Fauzia <laboni14 at gmail.com> wrote:
> Thanks Devang and John. My pass is actually a loop pass, not a function
> pass. So, I couldnt override the getAnalysisUsage.
>
A LoopPass is no different from a FunctionPass here. You can use
getAnalysisUsage and getAnalysis in a LoopPass.
> I am in a loop pass, I know the outermost loop. Now How
2005 Apr 03
2
[LLVMdev] newbie question - selecting the write kind of pass
On Sat, Apr 02, 2005 at 11:35:30AM -0600, Chris Lattner wrote:
> On Sat, 2 Apr 2005, Sameer D. Sahasrabuddhe wrote:
> > I want to create a simple map from a Value to the instruction that
> > defines it. Such a map is present inside SchedGraph, but I need it in
> > a much simpler context.
>
> Is this in the context of the code generator?
No ... I am just trying to feel
2005 Apr 28
2
[LLVMdev] inserting blocks into a Function
Recently wrote a pass that inserts a preheader for a loop that doesn't
have one. When I tried to run it, I ran into a problem that became
obvious in hindsight - the PHINodes need to be updated in places where
the incoming control-edge has changed. Is there anything else that can
be affected when a block is inserted into the CFG?
Also, planning to write a helper function which will take care
2005 Apr 30
1
[LLVMdev] about AnalysisUsage
On Fri, Apr 29, 2005 at 10:32:18PM -0500, Chris Lattner wrote:
> We could definitely expose the pass class itself, but there are no
> implementation details or any other state that is useful.
Yeah ... this, and Transforms/Scalar.h answer my original original
question about why a lot of passes are present as a single CPP. The
whole LLVM code generally abhors including class definitions
2010 Jun 17
0
[LLVMdev] Loopinfo Analysis
Hi Hisham,
Most likely the basic blocks are the headers of two different loops. Try running viewCFG() on the function in question to see if this is the case.
Tom
----- Original Message -----
From: "Hisham Chowdhury" <hisham_chow at yahoo.com>
To: llvmdev at cs.uiuc.edu
Sent: Wednesday, June 16, 2010 7:22:00 PM GMT -05:00 US/Canada Eastern
Subject: [LLVMdev] Loopinfo Analysis
2005 Apr 29
1
[LLVMdev] inserting blocks into a Function
On Thu, Apr 28, 2005 at 11:22:26PM -0500, Chris Lattner wrote:
> BasicBlock *SplitBlockPredecessors(BasicBlock *BB, const char *Suffix,
> const std::vector<BasicBlock*> &Preds);
>
> Basically, given a BB with multiple predecessors, it inserts (and returns)
> a new block, moving the predecessors in Preds to the new block and leaving
2005 Nov 12
0
[LLVMdev] building LLVM 1.6 on Debian unstable ...
Sameer D. Sahasrabuddhe wrote:
> Hi,
>
> Tried to build the 1.6 release on Debian unstable, but ran into link
> problems for some utils ...
>
> Copying the messages when building llc, the same error occurs for lli,
> llvm-db and some of the examples. Is this a problem with the compiler
> version? LLVMSelectionDAG.o itself builds correctly.
>
> make[2]: Entering
2013 May 21
1
[LLVMdev] How to find the first block of each loop
Hello,
I want to insert a control-block before every outermost loop. My current
solution is: 1) find each outermost loop in some function; 2) find the loop
header with Loop->getHeader() APIs, and then insert the controller block
before the header block of current loop.
But I encounters problems when there multi subsequent loops in the
following example, where there is no code between loops: