Lines Matching refs:Ins

144         : CandidateKind(CT), Base(B), Index(Idx), Stride(S), Ins(I) {}  in Candidate()
171 Instruction *Ins = nullptr; member
274 return (Basis.Ins != C.Ins && // skip the same instruction in isBasisFor()
277 Basis.Ins->getType() == C.Ins->getType() && in isBasisFor()
279 DT->dominates(Basis.Ins->getParent(), C.Ins->getParent()) && in isBasisFor()
307 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI); in isFoldable()
334 hasOnlyOneNonZeroIndex(cast<GetElementPtrInst>(C.Ins))); in isSimplestForm()
595 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType())); in emitBump()
615 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
638 assert(Basis.Ins->getParent() != nullptr && "the basis is unlinked"); in rewriteCandidateWithBasis()
644 if (!C.Ins->getParent()) in rewriteCandidateWithBasis()
647 IRBuilder<> Builder(C.Ins); in rewriteCandidateWithBasis()
658 Reduced = Builder.CreateSub(Basis.Ins, NegBump); in rewriteCandidateWithBasis()
672 Reduced = Builder.CreateAdd(Basis.Ins, Bump); in rewriteCandidateWithBasis()
678 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); in rewriteCandidateWithBasis()
679 bool InBounds = cast<GetElementPtrInst>(C.Ins)->isInBounds(); in rewriteCandidateWithBasis()
682 unsigned AS = Basis.Ins->getType()->getPointerAddressSpace(); in rewriteCandidateWithBasis()
683 Type *CharTy = Type::getInt8PtrTy(Basis.Ins->getContext(), AS); in rewriteCandidateWithBasis()
684 Reduced = Builder.CreateBitCast(Basis.Ins, CharTy); in rewriteCandidateWithBasis()
687 Reduced = Builder.CreateBitCast(Reduced, C.Ins->getType()); in rewriteCandidateWithBasis()
693 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType(), in rewriteCandidateWithBasis()
694 Basis.Ins, Bump, "", InBounds); in rewriteCandidateWithBasis()
701 Reduced->takeName(C.Ins); in rewriteCandidateWithBasis()
702 C.Ins->replaceAllUsesWith(Reduced); in rewriteCandidateWithBasis()
705 C.Ins->removeFromParent(); in rewriteCandidateWithBasis()
706 UnlinkedInstructions.push_back(C.Ins); in rewriteCandidateWithBasis()