search for: directf

Displaying 3 results from an estimated 3 matches for "directf".

Did you mean: direct
2011 Feb 22
2
[LLVMdev] Clone a function and change signature
...ant 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() + "_SPEC"); DirectF->setLinkage(GlobalValue::InternalLinkage); // add the extra argument new Argument(GEP->getPointerOperand()->getType(),"arg",DirectF); M.g...
2011 Feb 22
0
[LLVMdev] Clone a function and change signature
...ne the body of the original function into the new function. I believe that's what poolalloc does and what I did the last time I had to add function arguments to a function. -- John T. > > The code I added was as follows > > CI->getCalledFunction()->dump(); > Function* DirectF = CloneFunction(CI->getCalledFunction()); > DirectF->setName(CI->getCalledFunction()->getNameStr() + "_SPEC"); > DirectF->setLinkage(GlobalValue::InternalLinkage); > // add the extra argument > new Argument(GEP->getPointerOperand()->getType(),"arg&...
2011 Feb 23
0
[LLVMdev] LLVMdev Digest, Vol 80, Issue 37-Help to unsubscribe
...ant 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() + "_SPEC"); DirectF->setLinkage(GlobalValue::InternalLinkage); // add the extra argument new Argument(GEP->getPointerOperand()->getType(),"arg",DirectF); M.g...