search for: recordrwcall

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

Did you mean: recordcall
2018 Jan 04
0
writing llvm pass to instrument read and write
...te(getThreadId, args, "", inst); BitCastInst* bitcast = new BitCastInst(op, PointerType::getUnqual(Type::getInt8Ty(module.getContext())), "", inst); args.push_back(get_tid); args.push_back(bitcast); args.push_back(rdWr); Instruction* recordRWCall = CallInst::Create(recordRW, args, "", inst); } I have run my pass with opt and I could see that recordRWCall has been created but this function is not called when I run test.cpp. How can I integrate all this together? What I want to do is when I run test.cpp, and if there is any read...
2018 Jan 04
0
writing llvm pass for external library
...te(getThreadId, args, "", inst); BitCastInst* bitcast = new BitCastInst(op, PointerType::getUnqual(Type::getInt8Ty(module.getContext())), "", inst); args.push_back(get_tid); args.push_back(bitcast); args.push_back(rdWr); Instruction* recordRWCall = CallInst::Create(recordRW, args, "", inst); } I have run my pass with opt and I could see that recordRWCall has been created but this function is not called when I run test.cpp. How can I integrate all this together? What I want to do is when I run test.cpp, and if there is any read...