search for: bhavani

Displaying 20 results from an estimated 40 matches for "bhavani".

2008 Dec 03
4
[LLVMdev] Identifying backedges
Hi, How do I find out if a branch instruction belongs to an if-else or a loop i.e it is a backedge. Thanks, Bhavani
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
..... Instruction does not dominate all uses! %tmp3 = add i32 %b, %a ; <i32> [#uses=2] store i32 %tmp3, i32* %0, align 4 Broken module found, compilation aborted! add is existing instruction in function. store is the instruction I have added to the function. How do I fix this now :(? Thanks, Bhavani --- On Mon, 11/17/08, Nick Lewycky <nicholas at mxc.ca> wrote: > From: Nick Lewycky <nicholas at mxc.ca> > Subject: Re: Assertion `InReg && "Value not in map!"' failed > To: bhavi63 at yahoo.com > Cc: "LLVM Developers Mailing List" <llvmd...
2008 Nov 15
3
[LLVMdev] How do I get the result of an instruction?
Hi all, I probably have a stupid question but I could not find out so please help me out here. I can use getOperand to get the operands of an instruction. Similarly, How do I get the result of an instruction? Thanks, Bhavani
2008 Oct 27
3
[LLVMdev] Is it possible to use EE within optimization pass?
...rror when I try to link to the EE by using LINK_COMPONENTS=engine in the Makefile. Without that line in the Makefile, my pass gets registered fine but it is not able to create EE(Error reading Symbol). So, how do I link LLVMExecutionEngine.o without causing the multiple registration error. thanks, Bhavani --- On Mon, 10/27/08, John Criswell <criswell at cs.uiuc.edu> wrote: > From: John Criswell <criswell at cs.uiuc.edu> > Subject: Re: [LLVMdev] Is it possible to use EE within optimization pass? > To: "bhavi63 at yahoo.com" <bhavi63 at yahoo.com>, "LLVM Dev...
2008 Oct 27
2
[LLVMdev] Is it possible to use EE within optimization pass?
...hen I execute using opt, I get the error that the pass is registered multiple times. I know that there has to be a way out of this. Please let me know how I should link/load the EE library files with my optimization pass. I hope the question is clear now. Sorry for repeating so many times. thanks, Bhavani --- On Mon, 10/27/08, John Criswell <criswell at cs.uiuc.edu> wrote: > From: John Criswell <criswell at cs.uiuc.edu> > Subject: Re: [LLVMdev] Is it possible to use EE within optimization pass? > To: "bhavi63 at yahoo.com" <bhavi63 at yahoo.com> > Cc: &quot...
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote: > Thanks John! My pass is registered only in 1 cpp file. It registers and executes fine without the EE. > > I only get the Pass registered multiple times error when I try to link to the EE by using LINK_COMPONENTS=engine in the Makefile. Without that line in the Makefile, m...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...! I get it now. Thanks a lot ! I changed it to BitCastInst(AI,VoidPtrTy,"",j); And now I am getting the following error :(. I have been stuck with this error before also. I know I am missing out something silly. What is the cause of this error and Please let me know how to fix it. /home/bhavani/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1130: llvm::SDOperand llvm::SelectionDAGLowering::getValue(const llvm::Value*): Assertion `InReg && "Value not in map!"' failed. I know I am asking lot of questions but I am new to LLVM and am finding it hard to figure things...
2008 Dec 03
0
[LLVMdev] Identifying backedges
Bhavani, A simple way that I'm not sure is 100% guaranteed to work is if the branch is to an earlier or later basic block. Micah -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of bhavani krishnan Sent: Wednesday, December 03, 2008 3...
2008 Nov 17
0
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...gned int): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"' failed. Why is it a bad signature :(? i8* is being passed to the function? Any ideas as to what could be wrong? Thanks, Bhavani --- On Mon, 11/17/08, Nick Lewycky <nicholas at mxc.ca> wrote: > From: Nick Lewycky <nicholas at mxc.ca> > Subject: Re: Assertion `InReg && "Value not in map!"' failed > To: bhavi63 at yahoo.com > Cc: "LLVM Developers Mailing List" <llvmde...
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote: > I realize my questions may not have been so clear. To give more details. I am writing a fuction pass. I want to interpret some of the instructions within the function pass. In order to do so, I need to create an EE object within the function pass. Now, If I compile and execute...
2008 Nov 17
1
[LLVMdev] How do I get the result of an instruction?
ok. I think I get it now. I need to create the instructions as you have given. For eg: I could pass Instruction*(for storing the result of this instruction) while creating the store instruction. This is what you meant rite?? Thanks, Bhavani --- On Mon, 11/17/08, bhavani krishnan <bhavi63 at yahoo.com> wrote: > From: bhavani krishnan <bhavi63 at yahoo.com> > Subject: Re: [LLVMdev] How do I get the result of an instruction? > To: "Eli Friedman" <eli.friedman at gmail.com> > Cc: "LLVM Devel...
2008 Nov 15
2
[LLVMdev] How do I get the result of an instruction?
Thanks! How do I cast the result to a string? I basically need to store the results of some instructions in a file. Thanks, Bhavani --- On Sun, 11/16/08, John Criswell <criswell at uiuc.edu> wrote: > From: John Criswell <criswell at uiuc.edu> > Subject: Re: [LLVMdev] How do I get the result of an instruction? > To: "bhavi63 at yahoo.com" <bhavi63 at yahoo.com>, "LLVM Developers Maili...
2008 Nov 16
0
[LLVMdev] How do I get the result of an instruction?
bhavani krishnan wrote: > Hi all, > > I probably have a stupid question but I could not find out so please help me out here. I can use getOperand to get the operands of an instruction. Similarly, How do I get the result of an instruction? > The instruction itself is its result. For example...
2008 Oct 26
1
[LLVMdev] Error while creating ExecutionEngine
...low when I try to load LLVMExecutionEngine.o in the opt command. Error opening '../../../build/Release/lib/LLVMExecutionEngine.o': ../../../build/Release/lib/LLVMExecutionEngine.o: only ET_DYN and ET_EXEC can be loaded -load request ignored. Any ideas?? Please help me out here. Thanks, Bhavani --- On Sun, 10/26/08, Bill Wendling <isanbard at gmail.com> wrote: > From: Bill Wendling <isanbard at gmail.com> > Subject: Re: [LLVMdev] Error while creating ExecutionEngine > To: bhavi63 at yahoo.com, "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> &...
2008 Oct 27
2
[LLVMdev] Is it possible to use EE within optimization pass?
...e in the Makefile, I get the Pass registered multiple times error. And if i dont use anything, it is not able to load the EE. It gives error loading symbol error. So, 1. Is it possible to use the EE within an optimization pass? 2. If it is possible, how do I do it? Please help me out here! Thanks, Bhavani
2008 Nov 17
2
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
...); CallPrint->setTailCall(true); I am getting the following error while executing. Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed. What am I doing wrong :(? I always get stuck badly when these assertions fail :(. Please help me out here. Thanks, Bhavani --- On Sun, 11/16/08, Eli Friedman <eli.friedman at gmail.com> wrote: > From: Eli Friedman <eli.friedman at gmail.com> > Subject: Re: [LLVMdev] How do I get the result of an instruction? > To: bhavi63 at yahoo.com > Cc: "LLVM Developers Mailing List" <llvmde...
2008 Nov 14
2
[LLVMdev] Using map structure in llvm IR
Hi, How do I create a function in llvm IR which returns a StringMap datastructure? thanks, Bhavani
2008 Oct 27
0
[LLVMdev] Is it possible to use EE within optimization pass?
bhavani krishnan wrote: > Hi all, > > I am repeating my question from yesterday coz I need to find a solution to this ASAP. > > How do I link the executionengine to an optimization pass. If I use LINK_COMPONENTS=engine in the Makefile, I get the Pass registered multiple times error. And if...
2008 Oct 26
2
[LLVMdev] Error while creating ExecutionEngine
...efined symbol: _ZN4llvm15ExecutionEngine6createEPNS_14ModuleProviderEbPSs I tried looking in the archives but could not find any similar problem. Please let me know what I am doing wrong. Please let me know if it is possible to create an object of executionengine in the optimization pass? Thanks, bhavani
2008 Dec 01
2
[LLVMdev] Question in LLVM IR
...%tmp25 = shl i32 %a.0, 1 %tmp29.pn = shl i32 %i, 1 %y.0 = shl i32 %b.0, 1 %tmp27 = sub i32 %y.0, %tmp29.pn %tmp35 = add i32 %tmp27, %tmp25 ret i32 %tmp35 Please help me out here..... Thanks, Bhavani