Displaying 3 results from an estimated 3 matches for "origret".
Did you mean:
origen
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
...}
Value *GlobalsRet;
if ( Call->getType()->isVoidTy() ) {
// The original function returned nothing, so the new function
returns
// only the globals
GlobalsRet = New;
} else {
// Split the values
Value *OrigRet = ExtractValueInst::Create(New, 0, "origret",
Before);
GlobalsRet = ExtractValueInst::Create(New, 1, "globalsret",
Before);
// Replace all the uses of the original result
Call->replaceAllUsesWith(OrigRet);
}
// Now, sto...
2011 Sep 16
0
[LLVMdev] How to duplicate a function?
...}
Value *GlobalsRet;
if ( Call->getType()->isVoidTy() ) {
// The original function returned nothing, so the new function
returns
// only the globals
GlobalsRet = New;
} else {
// Split the values
Value *OrigRet = ExtractValueInst::Create(New, 0, "origret",
Before);
GlobalsRet = ExtractValueInst::Create(New, 1, "globalsret",
Before);
// Replace all the uses of the original result
Call->replaceAllUsesWith(OrigRet);
}
// Now, sto...
2008 Sep 13
3
[LLVMdev] Duplicate Function with duplicated Arguments
I'm now writing a pass and I wanna ask a question about how to
duplicate the function and add duplicated arguments in llvm, for
example:
func(int a, char *b) -> func(int a, char *b, int a1, char *b1)
I'm now stuck at using "getOrInsertFunction" and how to handle
"getArgumentList", please share your opinion, thanks a lot!
James