Displaying 9 results from an estimated 9 matches for "callinstruct".
2012 Oct 08
2
[LLVMdev] How can I find the LHS of the function call when traversing the function call
...th LLVM
IR.
I am facing issue with de-compiling the following instruction once it is
read,
%var2 = call i8 @myfuncCall (i2 %var1)
In after I parse the file (lets say using parseIRFiles ).
I can see the instructions,( the function call instruction ), How can I get
the %var2 from the instruction/callInstruction ?
going thru the llvm installations cpp and .h files, it is not clear how do
I get the desired variable.
Thanks in Advance.
regards
Tarique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121008/844be94...
2011 Feb 22
1
[LLVMdev] Clone a function and change signature
On Feb 22, 2011, at 11:46 AM, John Criswell wrote:
> On 2/22/11 1:31 PM, Arushi Aggarwal wrote:
>> Hi,
>>
>> I want to clone a given function, and add an argument to it. I then
>> want to add a call to that new function. I have a callInstruction CI,
>> which I want to transform to call this new function, and to take a new
>> argument.
>
> If I understand correctly, you're cloning the function first and then
> adding a new argument to the clone. Do I understand correctly?
>
> If so, I don't believ...
2019 Mar 09
2
Cast a function parameter to GEP
Thanks Tim,
I'll try to solve my problem ASAP, if I cannot maybe I'll some other
clarifications.
Thanks again
On Sat, Mar 9, 2019, 06:03 Tim Northover <t.p.northover at gmail.com> wrote:
> Hi Alberto,
>
> On Sat, 9 Mar 2019 at 05:50, Alberto Barbaro via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > i8* getelementptr inbounds ([7 x i8], [7 x i8]*
2011 Feb 22
2
[LLVMdev] Clone a function and change signature
Hi,
I want to clone a given function, and add an argument to it. I then want to
add a call to that new function. I have a callInstruction CI, which I want
to transform to call this new function, and to take a new argument.
The code I added was as follows
CI->getCalledFunction()->dump();
Function* DirectF = CloneFunction(CI->getCalledFunction());
DirectF->setName(CI->getCalledFunction()->getNameStr() + "_...
2011 Feb 22
0
[LLVMdev] Clone a function and change signature
On 2/22/11 1:31 PM, Arushi Aggarwal wrote:
> Hi,
>
> I want to clone a given function, and add an argument to it. I then
> want to add a call to that new function. I have a callInstruction CI,
> which I want to transform to call this new function, and to take a new
> argument.
If I understand correctly, you're cloning the function first and then
adding a new argument to the clone. Do I understand correctly?
If so, I don't believe you can do that. IIRC, you hav...
2010 Nov 18
0
[LLVMdev] How to construct parameters for a insert function? one from a return value from previous call, the other one is a string....
...llows?
Args[1] = ConstantArray::get(func->getContext(), "something", true);
The last Argument I can insert is the length of the string
"something", I think it should be right....
Args[2] = ConstantInt::get(Type::getInt32Ty(func->getContext()), 9);
and Lastly, I create a CallInstruction as follows,
CallInst::Create(fcall, Args.begin(), Args.end(), "", insertPos); //
insertPos is the Instruction * type, the position I want to insert
write call.
Does any one have some insight about it?
Thanks for your time and any suggestions in advance....
--Shuying
2017 Feb 10
2
Stripping Debug Locations on cross BB moves, part 2 (PR31891)
...hing to do.
>
> Probably getMergedLocation should optionally return line-0 instead of null; whether it's an optional don’t-return-null parameter or a separate getMergedLocationForCall API is an implementation detail.
We need something to this end to support getMergedLocationForCall for CallInstructions. I'm not yet sure what the best API design for this. It feels dangerous to let the caller decide whether a nullptr is acceptable.
> The code-motion cases won't be using getMergedLocation anyway, so if we want to make a new API to set a "been-moved" flag, that seems pretty...
2011 Feb 23
0
[LLVMdev] LLVMdev Digest, Vol 80, Issue 37-Help to unsubscribe
...To: llvmdev at cs.uiuc.edu
Message-ID:
<AANLkTinAsp-PiP0BjEDR9439-bSuGctSC4E9E5n+9nk1 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I want to clone a given function, and add an argument to it. I then want to
add a call to that new function. I have a callInstruction CI, which I want
to transform to call this new function, and to take a new argument.
The code I added was as follows
CI->getCalledFunction()->dump();
Function* DirectF = CloneFunction(CI->getCalledFunction());
DirectF->setName(CI->getCalledFunction()->getNameStr() + "_...
2017 Feb 09
2
Stripping Debug Locations on cross BB moves, part 2 (PR31891)
On Wed, Feb 8, 2017 at 10:32 AM Adrian Prantl <aprantl at apple.com> wrote:
> On Feb 8, 2017, at 10:17 AM, David Blaikie <dblaikie at gmail.com> wrote:
>
>
>
> On Wed, Feb 8, 2017 at 9:56 AM Adrian Prantl <aprantl at apple.com> wrote:
>
> On Feb 8, 2017, at 9:44 AM, David Blaikie <dblaikie at gmail.com> wrote:
>
>
>
> On Wed, Feb 8, 2017 at