search for: logexternalcalls

Displaying 2 results from an estimated 2 matches for "logexternalcalls".

2005 Apr 07
0
[LLVMdev] arguments to standard library functions
...tor<const Type*> pList; pList.push_back( PointerType::get(Type::SByteTy) ); pList.push_back( Type::UIntTy ); FunctionType* FT = FunctionType::get( Type::IntTy, pList, /*is vararg*/ false); Function* CF = new Function(FT, Function::ExternalLinkage, std::string("logExternalCalls"), &M); for(Module::iterator i = M.begin(), e = M.end(); i != e; i++ ){ for(Function::iterator fi = i->begin(), fe = i->end(); fi != fe ; fi++ ){ for(BasicBlock::iterator bi = fi->begin(), be = fi->end(); bi != be ; bi++ ){ if(isa<Call...
2005 Mar 21
3
[LLVMdev] arguments to standard library functions
HI , I understand that the standard C library functions are executed using the native library of the host machine. ( for example when we execute a bytecode to extract the profile info ) Is it possible to extract for each standard library function that is executed , the arguments that the function is called with. For example if printf ("%d", some_int ) when called during runtime