Displaying 2 results from an estimated 2 matches for "insertinstrumentationcall".
2005 Oct 16
2
[LLVMdev] Help on LLVM Instrumentation
Hi ,
I am using LLVM for my Post Graduate course project on Optimization. I am trying to do some insrtumentation to the bytecode.I 've been going through your Instrumentation code for the past few days in /llvm/lib/Transforms/Instrumentation folder and finally found two ways of instrumentation :
1) injecting LLVM bytecode instructions
2) calling an external C function.
I am trying both and
2004 May 21
1
[LLVMdev] Re: LLVMdev digest, Vol 1 #292 - 4 msgs
...4)[0x85e0626]
opt(llvm::PassManagerTraits<llvm::Module>::run(llvm::Module&)+0x1b)[0x85dfc8d]
opt(llvm::PassManager::run(llvm::Module&)+0x1f)[0x8595fb1]
opt(main+0x97f)[0x838273b]
opt(__libc_start_main+0xa4)[0x420158d4]
opt(dlopen+0x41)[0x8381d2d]
Aborted
Source code:
static void InsertInstrumentationCall( BasicBlock *BB,
const std::string FnName,
unsigned BBnumber){
Module &M = *BB->getParent()->getParent();
Function *InstrFn = M.getOrInsertFunction (FnName , Type::VoidTy, Type::UIntTy,0);
std::vector<Value *> Args(1);
Args[0] = ConstantUInt::get(Type::...