Lines Matching defs:ElementSize
203 // A helper function that scales Idx with ElementSize before invoking
206 Value *S, uint64_t ElementSize,
221 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
471 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize,
473 // I = B + sext(Idx *nsw S) * ElementSize
474 // = B + (sext(Idx) * sext(S)) * ElementSize
475 // = B + (sext(Idx) * ElementSize) * sext(S)
479 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
485 uint64_t ElementSize,
490 ArrayIdx, ElementSize, GEP);
506 // GEP = Base + sext(LHS *nsw RHS) * ElementSize
507 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP);
509 // GEP = Base + sext(LHS <<nsw RHS) * ElementSize
510 // = Base + sext(LHS *nsw (1 << RHS)) * ElementSize
514 allocateCandidatesAndFindBasisForGEP(Base, PowerOf2, LHS, ElementSize, GEP);
540 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType());
545 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP);
556 factorArrayIndex(TruncatedArrayIdx, BaseExpr, ElementSize, GEP);
582 APInt ElementSize(
587 APInt::sdivrem(IndexOffset, ElementSize, Q, R);