Displaying 2 results from an estimated 2 matches for "instrument_access".
2018 Jan 04
0
writing llvm pass to instrument read and write
...ress.
Value *Ptr = nullptr;
Value *op_l = nullptr;
Value *op_s = nullptr;
if (auto *LI = dyn_cast<LoadInst>(&I)) {
Ptr = LI->getPointerOperand();
Constant* read = ConstantInt::get(Type::getInt32Ty(M.getContext()), 0);
instrument_access(Ptr, &(*LI), read, M);
modified = true;
} else if (auto *SI = dyn_cast<StoreInst>(&I)) {
Ptr = SI->getPointerOperand();
Constant* write = ConstantInt::get(Type::getInt32Ty(M.getContext()), 1);
instrument_access(Ptr, &(*SI),...
2018 Jan 04
0
writing llvm pass for external library
...ress.
Value *Ptr = nullptr;
Value *op_l = nullptr;
Value *op_s = nullptr;
if (auto *LI = dyn_cast<LoadInst>(&I)) {
Ptr = LI->getPointerOperand();
Constant* read = ConstantInt::get(Type::getInt32Ty(M.getContext()), 0);
instrument_access(Ptr, &(*LI), read, M);
modified = true;
} else if (auto *SI = dyn_cast<StoreInst>(&I)) {
Ptr = SI->getPointerOperand();
Constant* write = ConstantInt::get(Type::getInt32Ty(M.getContext()), 1);
instrument_access(Ptr, &(*SI),...