Lines Matching defs:MemoryInst

430   bool optimizeMemoryInst(Instruction *MemoryInst, Value *Addr, Type *AccessTy,
432 bool optimizeGatherScatterInst(Instruction *MemoryInst, Value *Ptr);
3744 /// AccessTy/MemoryInst - This is the type for the access (e.g. double) and
3748 Instruction *MemoryInst;
3787 AccessTy(AT), AddrSpace(AS), MemoryInst(MI), AddrMode(AM),
3802 Match(Value *V, Type *AccessTy, unsigned AS, Instruction *MemoryInst,
3813 AccessTy, AS, MemoryInst, Result,
4594 getDTFn().dominates(IVInc, MemoryInst)) {
5604 return Val->isUsedInBasicBlock(MemoryInst->getParent());
5720 /// Sink addressing mode computation immediate before MemoryInst if doing so
5739 bool CodeGenPrepare::optimizeMemoryInst(Instruction *MemoryInst, Value *Addr,
5797 auto getDTFn = [MemoryInst, this]() -> const DominatorTree & {
5798 Function *F = MemoryInst->getParent()->getParent();
5802 V, AccessTy, AddrSpace, MemoryInst, AddrModeInsts, *TLI, *LI, getDTFn,
5837 return IsNonLocalValue(V, MemoryInst->getParent());
5847 IRBuilder<> Builder(MemoryInst);
5861 << " for " << *MemoryInst << "\n");
5882 << " for " << *MemoryInst << "\n");
6040 << " for " << *MemoryInst << "\n");
6119 MemoryInst->replaceUsesOfWith(Repl, SunkAddr);
6154 bool CodeGenPrepare::optimizeGatherScatterInst(Instruction *MemoryInst,
6165 if (MemoryInst->getParent() != GEP->getParent())
6216 IRBuilder<> Builder(MemoryInst);
6256 IRBuilder<> Builder(MemoryInst);
6262 if (cast<IntrinsicInst>(MemoryInst)->getIntrinsicID() ==
6264 ScalarTy = MemoryInst->getType()->getScalarType();
6266 assert(cast<IntrinsicInst>(MemoryInst)->getIntrinsicID() ==
6268 ScalarTy = MemoryInst->getOperand(0)->getType()->getScalarType();
6276 MemoryInst->replaceUsesOfWith(Ptr, NewAddr);