search for: newci

Displaying 4 results from an estimated 4 matches for "newci".

Did you mean: newc
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
2005 Apr 07
0
[LLVMdev] arguments to standard library functions
...Constant *GEP = ConstantExpr::getGetElementPtr(fname, std::vector<Constant*>(2,Constant::getNullValue(Type::LongTy))); paramList.push_back( GEP); paramList.push_back( ConstantUInt::get( Type::UIntTy, CI->getNumOperands()) ); CallInst* newCI = new CallInst( CF, paramList, "", bi ); } } } } } return true; } ------------------------------------------------------------------------------------------------------------------------------------------- and I have added th...
2013 Feb 06
0
[LLVMdev] [llvm] r174463 - Initial support for DWARF CFI parsing and dumping in LLVM
...tation = Data.getCStr(&Offset); >> + uint64_t CodeAlignmentFactor = Data.getULEB128(&Offset); >> + int64_t DataAlignmentFactor = Data.getSLEB128(&Offset); >> + uint64_t ReturnAddressRegister = Data.getULEB128(&Offset); >> + >> + CIE *NewCIE = new CIE(Data, StartOffset, Length, Version, >> + StringRef(Augmentation), CodeAlignmentFactor, >> + DataAlignmentFactor, ReturnAddressRegister); >> + Entries.push_back(NewCIE); >> + } else { >> + //...
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