Home | History | Annotate | Download | only in Utils

Lines Matching refs:Index

634 Value *InductionDescriptor::transform(IRBuilder<> &B, Value *Index) const {
637 assert(Index->getType() == StartValue->getType() &&
638 "Index type does not match StartValue type");
640 return B.CreateSub(StartValue, Index);
642 Index = B.CreateMul(Index, StepValue);
643 return B.CreateAdd(StartValue, Index);
646 assert(Index->getType() == StepValue->getType() &&
647 "Index type does not match StepValue type");
649 Index = B.CreateNeg(Index);
651 Index = B.CreateMul(Index, StepValue);
652 return B.CreateGEP(nullptr, StartValue, Index);