search for: newfty

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

2017 Jun 15
4
CloneFunctionInto produces invalid debug info
...e currently working on a science project and implemented a FunctionPass that clones a function (more precisely a constructor of a struct/class) and adds a parameter. First, we create a new function with a new function type, which includes the newly added parameter: Function *NF = Function::Create(NewFTy, F.getLinkage(), F.getName() + "Cloned", F.getParent()); and after setting up the ValueToValueMapTy, we use the CloneFunctionInto method to clone the function body CloneFunctionInto(NF, &F, Map, true, Returns, "Cloned"); The code seems to work as intended, but when we t...
2017 Jun 15
2
CloneFunctionInto produces invalid debug info
...project and implemented a > FunctionPass that clones a function (more precisely a constructor of a > struct/class) and adds a parameter. > > First, we create a new function with a new function type, which includes > the newly added parameter: > > Function *NF = Function::Create(NewFTy, F.getLinkage(), F.getName() + > "Cloned", F.getParent()); > > > and after setting up the ValueToValueMapTy, we use the CloneFunctionInto > method to clone the function body > > CloneFunctionInto(NF, &F, Map, true, Returns, "Cloned"); > > > The...
2017 Jun 15
3
CloneFunctionInto produces invalid debug info
...FunctionPass that clones a function (more precisely a constructor of a struct/class) and adds a parameter. >>> >>> First, we create a new function with a new function type, which includes the newly added parameter: >>> >>>> Function *NF = Function::Create(NewFTy, F.getLinkage(), F.getName() + "Cloned", F.getParent()); >>> >>> and after setting up the ValueToValueMapTy, we use the CloneFunctionInto method to clone the function body >>> >>>> CloneFunctionInto(NF, &F, Map, true, Returns, "Cloned&qu...
2017 Jun 16
2
CloneFunctionInto produces invalid debug info
...at clones a function (more precisely a constructor of a struct/class) and adds a parameter. >>>> >>>> First, we create a new function with a new function type, which includes the newly added parameter: >>>> >>>>> Function *NF = Function::Create(NewFTy, F.getLinkage(), F.getName() + "Cloned", F.getParent()); >>>> >>>> and after setting up the ValueToValueMapTy, we use the CloneFunctionInto method to clone the function body >>>> >>>>> CloneFunctionInto(NF, &F, Map, true, Returns,...
2017 Jun 19
2
CloneFunctionInto produces invalid debug info
...cisely a constructor of a struct/class) and adds a parameter. >>>>>> >>>>>> First, we create a new function with a new function type, which includes the newly added parameter: >>>>>> >>>>>>> Function *NF = Function::Create(NewFTy, F.getLinkage(), F.getName() + "Cloned", F.getParent()); >>>>>> >>>>>> and after setting up the ValueToValueMapTy, we use the CloneFunctionInto method to clone the function body >>>>>> >>>>>>> CloneFunctionInto(N...
2017 Jun 20
2
CloneFunctionInto produces invalid debug info
...ctor of a struct/class) and adds a parameter. >>>>>>> >>>>>>> First, we create a new function with a new function type, which includes the newly added parameter: >>>>>>> >>>>>>>> Function *NF = Function::Create(NewFTy, F.getLinkage(), >>>>>>>> F.getName() + "Cloned", F.getParent()); >>>>>>> >>>>>>> and after setting up the ValueToValueMapTy, we use the >>>>>>> CloneFunctionInto method to clone the function body &g...