Lines Matching defs:ElementSize
219 // A helper function that scales Idx with ElementSize before invoking
222 Value *S, uint64_t ElementSize,
237 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
479 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize,
481 // I = B + sext(Idx *nsw S) * ElementSize
482 // = B + (sext(Idx) * sext(S)) * ElementSize
483 // = B + (sext(Idx) * ElementSize) * sext(S)
487 PtrIdxTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
493 uint64_t ElementSize,
498 ArrayIdx, ElementSize, GEP);
514 // GEP = Base + sext(LHS *nsw RHS) * ElementSize
515 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP);
517 // GEP = Base + sext(LHS <<nsw RHS) * ElementSize
518 // = Base + sext(LHS *nsw (1 << RHS)) * ElementSize
522 allocateCandidatesAndFindBasisForGEP(Base, PowerOf2, LHS, ElementSize, GEP);
548 uint64_t ElementSize = GTI.getSequentialElementStride(*DL);
553 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP);
564 factorArrayIndex(TruncatedArrayIdx, BaseExpr, ElementSize, GEP);