Lines Matching refs:Access
197 InterestingMemoryAccess &Access);
295 InterestingMemoryAccess Access; in isInterestingMemoryAccess() local
300 Access.IsWrite = false; in isInterestingMemoryAccess()
301 Access.AccessTy = LI->getType(); in isInterestingMemoryAccess()
302 Access.Addr = LI->getPointerOperand(); in isInterestingMemoryAccess()
306 Access.IsWrite = true; in isInterestingMemoryAccess()
307 Access.AccessTy = SI->getValueOperand()->getType(); in isInterestingMemoryAccess()
308 Access.Addr = SI->getPointerOperand(); in isInterestingMemoryAccess()
312 Access.IsWrite = true; in isInterestingMemoryAccess()
313 Access.AccessTy = RMW->getValOperand()->getType(); in isInterestingMemoryAccess()
314 Access.Addr = RMW->getPointerOperand(); in isInterestingMemoryAccess()
318 Access.IsWrite = true; in isInterestingMemoryAccess()
319 Access.AccessTy = XCHG->getCompareOperand()->getType(); in isInterestingMemoryAccess()
320 Access.Addr = XCHG->getPointerOperand(); in isInterestingMemoryAccess()
331 Access.AccessTy = CI->getArgOperand(0)->getType(); in isInterestingMemoryAccess()
332 Access.IsWrite = true; in isInterestingMemoryAccess()
336 Access.AccessTy = CI->getType(); in isInterestingMemoryAccess()
337 Access.IsWrite = false; in isInterestingMemoryAccess()
341 Access.MaybeMask = CI->getOperand(2 + OpOffset); in isInterestingMemoryAccess()
342 Access.Addr = BasePtr; in isInterestingMemoryAccess()
346 if (!Access.Addr) in isInterestingMemoryAccess()
351 Type *PtrTy = cast<PointerType>(Access.Addr->getType()->getScalarType()); in isInterestingMemoryAccess()
359 if (Access.Addr->isSwiftError()) in isInterestingMemoryAccess()
363 auto *Addr = Access.Addr->stripInBoundsOffsets(); in isInterestingMemoryAccess()
381 return Access; in isInterestingMemoryAccess()
417 InterestingMemoryAccess &Access) { in instrumentMop() argument
419 if (!ClStack && isa<AllocaInst>(getUnderlyingObject(Access.Addr))) { in instrumentMop()
420 if (Access.IsWrite) in instrumentMop()
427 if (Access.IsWrite) in instrumentMop()
432 if (Access.MaybeMask) { in instrumentMop()
433 instrumentMaskedLoadOrStore(DL, Access.MaybeMask, I, Access.Addr, in instrumentMop()
434 Access.AccessTy, Access.IsWrite); in instrumentMop()
439 instrumentAddress(I, I, Access.Addr, Access.IsWrite); in instrumentMop()
639 std::optional<InterestingMemoryAccess> Access = in instrumentFunction() local
641 if (Access) in instrumentFunction()
642 instrumentMop(Inst, F.getDataLayout(), *Access); in instrumentFunction()