Lines Matching refs:Idx
142 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
144 : CandidateKind(CT), Base(B), Index(Idx), Stride(S), Ins(I) {} in Candidate()
217 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
224 ConstantInt *Idx, Value *S,
310 for (Use &Idx : GEP->indices()) { in hasOnlyOneNonZeroIndex()
311 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex()
343 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis() argument
345 Candidate C(CT, B, Idx, S, I); in allocateCandidatesAndFindBasis()
409 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd() local
410 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
412 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd()
413 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd()
415 APInt One(Idx->getBitWidth(), 1); in allocateCandidatesAndFindBasisForAdd()
416 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
417 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd()
439 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForMul() local
440 if (matchesAdd(LHS, B, Idx)) { in allocateCandidatesAndFindBasisForMul()
443 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
444 } else if (matchesOr(LHS, B, Idx) && haveNoCommonBitsSet(B, Idx, *DL)) { in allocateCandidatesAndFindBasisForMul()
449 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
475 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument
483 PtrIdxTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
529 for (Use &Idx : GEP->indices()) in allocateCandidatesAndFindBasisForGEP()
530 IndexExprs.push_back(SE->getSCEV(Idx)); in allocateCandidatesAndFindBasisForGEP()
579 APInt Idx = C.Index->getValue(), BasisIdx = Basis.Index->getValue(); in emitBump() local
580 unifyBitWidth(Idx, BasisIdx); in emitBump()
581 APInt IndexOffset = Idx - BasisIdx; in emitBump()