Displaying 3 results from an estimated 3 matches for "pcallfunction".
Did you mean:
callfunction
2004 May 19
2
[LLVMdev] Question about insert function or instruction.
...)<<"\n";
for(Function::iterator BB = F.begin(),E=F.end();
BB != E;++BB){
std::cerr<< "BB name : "<<BB->getName()<<"\n";
// here, the problem is how can I get external
function pointer.
//Instruction *callInst = new
CallInst(pCallfunction, "","");
//BB->getInstList().push_back(callInst);
//BB->getInstList().insert(callInst);
}
return false;
}
// can I insert print() function?
void print(){
printf("Insert test\n");
}
};
RegisterOpt<cntPass>...
2004 May 21
1
[LLVMdev] Re: LLVMdev digest, Vol 1 #292 - 4 msgs
...(Function::iterator BB = F.begin(),E=F.end();
> BB != E;++BB){
> std::cerr<< "BB name : "<<BB->getName()<<"\n";
> // here, the problem is how can I get external
> function pointer.
> file://Instruction *callInst = new
> CallInst(pCallfunction, "","");
> file://BB->getInstList().push_back(callInst);
> file://BB->getInstList().insert(callInst);
> }
>
> return false;
> }
> // can I insert print() function?
> void print(){
> printf("Insert...
2004 May 19
0
[LLVMdev] Question about insert function or instruction.
...ded in
llvm/runtime/libtrace, in addition to any other libraries that
the program needs.
> // here, the problem is how can I get external
> function pointer.
Look at the 'getOrInsertFunction' method of class llvm::Module.
> //Instruction *callInst = new
> CallInst(pCallfunction, "","");
> //BB->getInstList().push_back(callInst);
This is basically OK.
> //BB->getInstList().insert(callInst);
This second insert is not necessary.
-Brian Gaeke
--
gaeke at uiuc.edu