Displaying 2 results from an estimated 2 matches for "a5596246c2350cb74f31ffa7695d5923c".
2016 Jul 15
2
clone function
...tes independant arguments
with their own address (which differs with the one to clone). So it is
definitely not CloneFunction that I should have put the question on but
CloneFunctionInto, my bad.
For CloneFunction I followed the signature here (
http://llvm.org/docs/doxygen/html/namespacellvm.html#a5596246c2350cb74f31ffa7695d5923c)
but it seems not to be the version I have in my source files actually...
>
> You have to design this as a two-part process:
>
> 1) Clone the function (if you need to keep the original around)
> 2) Change the function signature. For this there is no helper (that I know
> of), yo...
2016 Jul 14
2
clone function
Hi,
I am trying to use the CloneFunction from llvm/Transforms/Utils/Cloning.h
and I don't understand how the ValueToValueMapTy argument should be
initialized. For instance, let say I want to clone this function (to add an
argument):
define void @function(i32 %i) #0 {
entry:
%i.addr = alloca i32, align 4
store i32 %i, i32* %i.addr, align 4
ret void
}
to another function which should,