Lines Matching refs:MemI

189     bool alreadyPrepared(Loop *L, Instruction* MemI,
203 void addOneCandidate(Instruction *MemI, const SCEV *LSCEV,
274 static Value *GetPointerOperand(Value *MemI) { in GetPointerOperand() argument
275 if (LoadInst *LMemI = dyn_cast<LoadInst>(MemI)) { in GetPointerOperand()
277 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(MemI)) { in GetPointerOperand()
279 } else if (IntrinsicInst *IMemI = dyn_cast<IntrinsicInst>(MemI)) { in GetPointerOperand()
308 void PPCLoopInstrFormPrep::addOneCandidate(Instruction *MemI, const SCEV *LSCEV, in addOneCandidate() argument
311 assert((MemI && GetPointerOperand(MemI)) && in addOneCandidate()
318 B.Elements.push_back(BucketElement(CDiff, MemI)); in addOneCandidate()
327 Buckets.push_back(Bucket(LSCEV, MemI)); in addOneCandidate()
339 Instruction *MemI; in collectCandidates() local
342 MemI = LMemI; in collectCandidates()
345 MemI = SMemI; in collectCandidates()
349 MemI = IMemI; in collectCandidates()
367 addOneCandidate(MemI, LSCEV, Buckets, MaxCandidateNum); in collectCandidates()
502 Instruction *MemI = BucketChain.Elements.begin()->Instr; in rewriteLoadStores() local
503 Value *BasePtr = GetPointerOperand(MemI); in rewriteLoadStores()
506 Type *I8Ty = Type::getInt8Ty(MemI->getParent()->getContext()); in rewriteLoadStores()
507 Type *I8PtrTy = Type::getInt8PtrTy(MemI->getParent()->getContext(), in rewriteLoadStores()
533 if (alreadyPrepared(L, MemI, BasePtrStartSCEV, BasePtrIncSCEV, Form)) in rewriteLoadStores()
544 getInstrName(MemI, PHINodeNameSuffix), in rewriteLoadStores()
566 getInstrName(MemI, GEPNodeIncNameSuffix), InsPoint); in rewriteLoadStores()
593 getInstrName(MemI, GEPNodeIncNameSuffix), InsPoint); in rewriteLoadStores()
724 bool PPCLoopInstrFormPrep::alreadyPrepared(Loop *L, Instruction* MemI, in alreadyPrepared() argument
728 BasicBlock *BB = MemI->getParent(); in alreadyPrepared()