Displaying 2 results from an estimated 2 matches for "fdpfunction".
Did you mean:
difunction
2016 Jun 21
3
function call replacement
...oblem:
I am doing this replacement operation in a FunctionPass (this is no
restriction, I could do it on a ModulePass if that's a solution). On each
Function given I do an iteration over the instructions and replace (if it's
a call to the right function) the call. It's like this:
bool FDPFunction::runOnFunction(Function &F) {
bool res = false;
TLI = &getAnalysis<TargetLibraryInfoWrapperPass>().getTLI();
for (inst_iterator i = inst_begin(F), e = inst_end(F); i != e; ++i) {
Instruction *I = &*i;
if (!I) {
errs() << "error: null pointer instru...
2016 Jun 20
3
function call replacement
Hi everyone,
I am trying to replace the call of a certain function with a call to
another function. It would for example replace the following:
%call = tail call noalias i8* @func(i64 10)
by
%call = tail call noalias i8* @other_func(i64 10)
I managed to declare other_func correctly but I am having troubles to
understand how I should proceed to do the replacement.
I tried to use