Lines Matching refs:Access

172                      InterestingMemoryAccess &Access);
330 InterestingMemoryAccess Access; in isInterestingMemoryAccess() local
336 Access.IsWrite = false; in isInterestingMemoryAccess()
337 Access.TypeSize = DL.getTypeStoreSizeInBits(LI->getType()); in isInterestingMemoryAccess()
338 Access.Alignment = LI->getAlignment(); in isInterestingMemoryAccess()
339 Access.Addr = LI->getPointerOperand(); in isInterestingMemoryAccess()
343 Access.IsWrite = true; in isInterestingMemoryAccess()
344 Access.TypeSize = in isInterestingMemoryAccess()
346 Access.Alignment = SI->getAlignment(); in isInterestingMemoryAccess()
347 Access.Addr = SI->getPointerOperand(); in isInterestingMemoryAccess()
351 Access.IsWrite = true; in isInterestingMemoryAccess()
352 Access.TypeSize = in isInterestingMemoryAccess()
354 Access.Alignment = 0; in isInterestingMemoryAccess()
355 Access.Addr = RMW->getPointerOperand(); in isInterestingMemoryAccess()
359 Access.IsWrite = true; in isInterestingMemoryAccess()
360 Access.TypeSize = in isInterestingMemoryAccess()
362 Access.Alignment = 0; in isInterestingMemoryAccess()
363 Access.Addr = XCHG->getPointerOperand(); in isInterestingMemoryAccess()
374 Access.IsWrite = true; in isInterestingMemoryAccess()
378 Access.IsWrite = false; in isInterestingMemoryAccess()
383 Access.TypeSize = DL.getTypeStoreSizeInBits(Ty); in isInterestingMemoryAccess()
386 Access.Alignment = (unsigned)AlignmentConstant->getZExtValue(); in isInterestingMemoryAccess()
388 Access.Alignment = 1; // No alignment guarantees. We probably got Undef in isInterestingMemoryAccess()
389 Access.MaybeMask = CI->getOperand(2 + OpOffset); in isInterestingMemoryAccess()
390 Access.Addr = BasePtr; in isInterestingMemoryAccess()
394 if (!Access.Addr) in isInterestingMemoryAccess()
399 Type *PtrTy = cast<PointerType>(Access.Addr->getType()->getScalarType()); in isInterestingMemoryAccess()
407 if (Access.Addr->isSwiftError()) in isInterestingMemoryAccess()
410 return Access; in isInterestingMemoryAccess()
450 InterestingMemoryAccess &Access) { in instrumentMop() argument
451 if (Access.IsWrite) in instrumentMop()
456 if (Access.MaybeMask) { in instrumentMop()
457 instrumentMaskedLoadOrStore(DL, Access.MaybeMask, I, Access.Addr, in instrumentMop()
458 Access.Alignment, Access.TypeSize, in instrumentMop()
459 Access.IsWrite); in instrumentMop()
464 instrumentAddress(I, I, Access.Addr, Access.TypeSize, Access.IsWrite); in instrumentMop()
621 Optional<InterestingMemoryAccess> Access = in instrumentFunction() local
623 if (Access) in instrumentFunction()
624 instrumentMop(Inst, F.getParent()->getDataLayout(), *Access); in instrumentFunction()