Lines Matching refs:Access

179                      InterestingMemoryAccess &Access);
334 InterestingMemoryAccess Access; in isInterestingMemoryAccess() local
339 Access.IsWrite = false; in isInterestingMemoryAccess()
340 Access.AccessTy = LI->getType(); in isInterestingMemoryAccess()
341 Access.Addr = LI->getPointerOperand(); in isInterestingMemoryAccess()
345 Access.IsWrite = true; in isInterestingMemoryAccess()
346 Access.AccessTy = SI->getValueOperand()->getType(); in isInterestingMemoryAccess()
347 Access.Addr = SI->getPointerOperand(); in isInterestingMemoryAccess()
351 Access.IsWrite = true; in isInterestingMemoryAccess()
352 Access.AccessTy = RMW->getValOperand()->getType(); in isInterestingMemoryAccess()
353 Access.Addr = RMW->getPointerOperand(); in isInterestingMemoryAccess()
357 Access.IsWrite = true; in isInterestingMemoryAccess()
358 Access.AccessTy = XCHG->getCompareOperand()->getType(); in isInterestingMemoryAccess()
359 Access.Addr = XCHG->getPointerOperand(); in isInterestingMemoryAccess()
370 Access.AccessTy = CI->getArgOperand(0)->getType(); in isInterestingMemoryAccess()
371 Access.IsWrite = true; in isInterestingMemoryAccess()
375 Access.AccessTy = CI->getType(); in isInterestingMemoryAccess()
376 Access.IsWrite = false; in isInterestingMemoryAccess()
380 Access.MaybeMask = CI->getOperand(2 + OpOffset); in isInterestingMemoryAccess()
381 Access.Addr = BasePtr; in isInterestingMemoryAccess()
385 if (!Access.Addr) in isInterestingMemoryAccess()
390 Type *PtrTy = cast<PointerType>(Access.Addr->getType()->getScalarType()); in isInterestingMemoryAccess()
398 if (Access.Addr->isSwiftError()) in isInterestingMemoryAccess()
402 auto *Addr = Access.Addr->stripInBoundsOffsets(); in isInterestingMemoryAccess()
421 Access.TypeSize = DL.getTypeStoreSizeInBits(Access.AccessTy); in isInterestingMemoryAccess()
422 return Access; in isInterestingMemoryAccess()
460 InterestingMemoryAccess &Access) { in instrumentMop() argument
462 if (!ClStack && isa<AllocaInst>(getUnderlyingObject(Access.Addr))) { in instrumentMop()
463 if (Access.IsWrite) in instrumentMop()
470 if (Access.IsWrite) in instrumentMop()
475 if (Access.MaybeMask) { in instrumentMop()
476 instrumentMaskedLoadOrStore(DL, Access.MaybeMask, I, Access.Addr, in instrumentMop()
477 Access.AccessTy, Access.IsWrite); in instrumentMop()
482 instrumentAddress(I, I, Access.Addr, Access.TypeSize, Access.IsWrite); in instrumentMop()
646 Optional<InterestingMemoryAccess> Access = in instrumentFunction() local
648 if (Access) in instrumentFunction()
649 instrumentMop(Inst, F.getParent()->getDataLayout(), *Access); in instrumentFunction()