search for: get_tid

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

Did you mean: get_id
2018 Jan 04
0
writing llvm pass to instrument read and write
...nt::get(Type::getInt32Ty(M.getContext()), 1); instrument_access(Ptr, &(*SI),write, M); modified = true; } } } void instrument_access(Value* op, Instruction* inst, Constant* rdWr, Module& module) { SmallVector<Value*, 8> args; Instruction* get_tid = CallInst::Create(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);...
2018 Jan 04
0
writing llvm pass for external library
...nt::get(Type::getInt32Ty(M.getContext()), 1); instrument_access(Ptr, &(*SI),write, M); modified = true; } } } void instrument_access(Value* op, Instruction* inst, Constant* rdWr, Module& module) { SmallVector<Value*, 8> args; Instruction* get_tid = CallInst::Create(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);...