Lines Matching refs:UseInst

1135                            Instruction *UseInst) {  in isCompleteOverwrite()
1139 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite()
1142 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite()
1147 if (auto CC = getLocForWriteEx(UseInst)) in isCompleteOverwrite()
1148 return isOverwrite(UseInst, DefInst, *CC, DefLoc, DepWriteOffset, in isCompleteOverwrite()
1190 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in isWriteAtEndOfFunction() local
1191 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction()
1192 LLVM_DEBUG(dbgs() << " ... hit read clobber " << *UseInst << ".\n"); in isWriteAtEndOfFunction()
1257 bool isReadClobber(const MemoryLocation &DefLoc, Instruction *UseInst) { in isReadClobber()
1258 if (isNoopIntrinsic(UseInst)) in isReadClobber()
1263 if (auto SI = dyn_cast<StoreInst>(UseInst)) in isReadClobber()
1266 if (!UseInst->mayReadFromMemory()) in isReadClobber()
1269 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isReadClobber()
1277 return isRefSet(BatchAA.getModRefInfo(UseInst, DefLoc)); in isReadClobber()
1526 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in getDomMemoryDef() local
1527 LLVM_DEBUG(dbgs() << " (" << *UseInst << ")\n"); in getDomMemoryDef()
1529 if (any_of(KillingDefs, [this, UseInst](Instruction *KI) { in getDomMemoryDef()
1530 return DT.dominates(KI, UseInst); in getDomMemoryDef()
1538 if (isMemTerminator(*CurrentLoc, EarlierMemInst, UseInst)) { in getDomMemoryDef()
1551 if (UseInst->mayThrow() && !isInvisibleToCallerBeforeRet(DefUO)) { in getDomMemoryDef()
1558 if (isReadClobber(*CurrentLoc, UseInst)) { in getDomMemoryDef()
1591 if (isCompleteOverwrite(*CurrentLoc, EarlierMemInst, UseInst)) { in getDomMemoryDef()
1592 BasicBlock *MaybeKillingBlock = UseInst->getParent(); in getDomMemoryDef()
1597 << " ... found killing def " << *UseInst << "\n"); in getDomMemoryDef()
1598 KillingDefs.insert(UseInst); in getDomMemoryDef()
1602 << " ... found preceeding def " << *UseInst << "\n"); in getDomMemoryDef()