search for: mrunal

Displaying 6 results from an estimated 6 matches for "mrunal".

Did you mean: mrinal
2008 Dec 07
1
[LLVMdev] How to extract loop body into a new function?
...%exitcond63 = icmp eq i32 %indvar.next62, 25 ; <i1> [#uses=1] br i1 %exitcond63, label %bb30, label %bb13 I want to be able to extract: A[B[i2]] = 2 * B[i2]; into a function myfunc() { A[B[i2]] = 2 * B[i2]; } How can I do this? Any hints?? Thanks, Mrunal ----- Original Message ----- From: "Mrunal J Shah" <mrunal.shah at gatech.edu> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Saturday, December 6, 2008 8:46:00 PM GMT -05:00 US/Canada Eastern Subject: Re: [LLVMdev] How to extract loop body into a...
2008 Dec 07
2
[LLVMdev] How to extract loop body into a new function?
Hi All, I am having trouble extracting loop body into a new function. The ExtractLoop() or ExtractBasicBlock() extracts the entire loop along with the header into a new function. All I want is to extract the body of the loop into a new function(without the header). Is this possible? Thanks, Mrunal
2008 Nov 16
2
[LLVMdev] How do I insert a printf call in the IR?
...I still have a small problem, I am trying to insert a printf in a transformation pass. So when the original program already has a printf, on executing the transformation pass, it tries to create function "printf1" instead of "printf" Am I missing something here? Thanks again! Mrunal ----- Original Message ----- From: "Nick Lewycky" <nicholas at mxc.ca> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Saturday, November 15, 2008 7:49:09 PM GMT -05:00 US/Canada Eastern Subject: Re: [LLVMdev] How do I insert a printf call in the I...
2008 Dec 07
0
[LLVMdev] How to extract loop body into a new function?
Sorry! It worked with ExtractBasicBlock() ----- Original Message ----- From: "Mrunal J Shah" <mrunal.shah at gatech.edu> To: "llvmdev" <llvmdev at cs.uiuc.edu> Sent: Saturday, December 6, 2008 8:30:33 PM GMT -05:00 US/Canada Eastern Subject: [LLVMdev] How to extract loop body into a new function? Hi All, I am having trouble extracting loop body into a n...
2008 Nov 16
2
[LLVMdev] How do I insert a printf call in the IR?
...pass a string into the argument vector. should I define args as std::vector<const Type*> args; or std::vector<const PointerType*> args; or std::vector<Value*> args; and how do I convert a constant string to either of these types, so that I can push it on the args list. Thanks! Mrunal
2008 Nov 16
0
[LLVMdev] How do I insert a printf call in the IR?
Shah, Mrunal J wrote: > Once I have the function > to make a call to this function I use > > CallInst::Create(myPrint, args.begin(), args.end(),"", B); > > But I am not being able to pass a string into the argument vector. > should I define args as > std::vector<const Type...