search for: instrument_func

Displaying 1 result from an estimated 1 matches for "instrument_func".

2017 Apr 28
2
How to get the address of a global variable in LLVM?
...st>(&I)) { Value* po = store_inst->getPointerOperand(); if(isa<GlobalVariable>(po)) { errs() << "store [pointer]: " << *po << '\n'; Constant *instrument_func = F.getParent()->getOrInsertFunction("func", Type::getVoidTy(Ctx), Type::getInt32Ty(Ctx), NULL); IRBuilder<> builder(&I); builder.SetInsertPoint(&B, ++builder.GetInsertPoint()); Value* a...