similar to: [LLVMdev] Free Variables In a Loop.

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Free Variables In a Loop."

2010 Apr 19
0
[LLVMdev] Free Variables In a Loop.
Rohith Goparaju wrote: > 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. When you say "variables," are you talking about LLVM virtual
2010 Apr 19
1
[LLVMdev] Free Variables In a Loop.
John, Thanks, this would work. But we are interested in obtaining the instruction that defines/allocates the value of interest. Once we obtain that we can use LoopInfo pass to check whether the basic block containing that definition instruction belongs to the loop in question. Is there a method that returns the defining instruction? Thanks, Adarsh On Mon, Apr 19, 2010 at 10:05 AM, John Criswell
2010 Mar 26
0
[LLVMdev] CFG Manipulation is LLVM
Hi Rohith, > I'm actually working on building a dependence graph . I'm not able > to find the methods which llvm uses to build the CFG. Is it possible to > use the same functions do build a dependence graph ( i Know the CFG > nodes are basicblocks where as dependence graph nodes will be variables)?. LLVM does not have explicit methods to build the CFG because it is
2010 Mar 17
3
[LLVMdev] CFG Manipulation is LLVM
Hi, Is there any API within llvm that provides methods to access the CFG and do some manipulations on the CFG. Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100317/5536c443/attachment.html>
2010 May 02
2
[LLVMdev] Unreachable Executed error.
Hi, I've written a pass that basically does some code transformations to enable parallel execution. After the transformation llvm runs BitCode Writer pass , which is aborting with Unreachable Executed error. What does this error generally mean?. Any pointers on how to go about debugging this. Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed...
2010 May 02
0
[LLVMdev] Unreachable Executed error.
Run the verifier pass after your pass. The bitcode readers and writers assume that the IR is well-formed, which yours may not be. Reid On Sun, May 2, 2010 at 1:08 AM, Rohith Goparaju <rgoparaj at umail.iu.edu> wrote: > Hi, > >   I've written a pass that basically does some code transformations to > enable parallel execution. After the transformation llvm runs BitCode
2010 Apr 26
2
[LLVMdev] Creating a GEP instruction.
Hi, I'm trying to create a GEP (inbounds) instruction . I was looking at the createinboundsGEP method . I didnt get the inputiterator part. My question how do i create a GEP instruction and what do i pass for the input iterator arguments. Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Apr 26
1
[LLVMdev] Creating a GEP instruction.
Thanks. The problem i'm facing is i want to get the address of the first element of an array and i have also tried using the createInBoundsGEP which takes the base pointer and the index value and a name. When i try passing '0' as the index im running into problems. Thanks, Rohith. On Sun, Apr 25, 2010 at 10:27 PM, Eli Friedman <eli.friedman at gmail.com>wrote: > On Sun, Apr
2010 Apr 18
2
[LLVMdev] Creating a Return Instruction.
Hi all, I have to create a return instruction in a function. The function is of type -- void * func (void *) . So i have to create a return instruction for the function that should return a void pointer. But actually the function will not return anything useful . it will be something like -- return void * null. The problem i am facing is to create a return instruction the Create function
2010 Apr 26
0
[LLVMdev] Creating a GEP instruction.
On Sun, Apr 25, 2010 at 5:15 PM, Rohith Goparaju <rgoparaj at umail.iu.edu> wrote: >  Hi, > >    I'm trying to create a GEP (inbounds) instruction . I was looking at the > createinboundsGEP method . I didnt get the inputiterator part. My question > how do i create a GEP instruction and what do i pass for the input iterator > arguments. Generic answer to "how do I
2010 Apr 05
1
[LLVMdev] Moving Instructions.
Hi, Is there a way in which i can move an instruction from one basicblock to another?.(without giving the instruction a new name). I'm actually trying to move the body of a given loop into a new function. If i would be able to move basicblocks's that would be ideal. So is there a way to move a basicblock into a function?. Thanks, Rohith. -------------- next part -------------- An HTML
2010 Mar 01
1
[LLVMdev] Regarding Dependence Analysis
Hi , I'm using llvm for a project im currently working on. I got a couple of questions . Is Dependence Analysis supported and/or implemented within llvm?. Does llvm perform peephole optimizations before genrating the bytecode . Thanks, Rohith. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Sep 20
1
[LLVMdev] AliasAnalysis Doubt.
Hi All, I'm trying to use the inbuilt AliasAnalysis function for one of my projects. Im trying to find out if a pair of load and store alias each other. It would be helpful if somebody could point out the right way to do this. Example : %13 = load i32* %12, align 4 store i32 30, i32* %4, align 4 So in the above example i'm trying to find out if
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
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
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,
2012 Apr 26
0
[LLVMdev] Detect if a basicblock is part of a loop
Rinaldini, What exactly did you run? Specifically, you may be missing some analysis passes that are necessary for LoopInfo to have the loop information 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
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
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 =