Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Index

92         : CandidateKind(Invalid), Base(nullptr), Index(nullptr),
96 : CandidateKind(CT), Base(B), Index(Idx), Stride(S), Ins(I),
100 // Note that Index and Stride of a GEP candidate do not necessarily have the
102 // sign-extended or truncated to Index's type.
103 ConstantInt *Index;
114 // <Base: a, Index: 1, Stride: b + 2>
118 // <Base: b, Index: 2, Stride: a + 1>
168 // Splits LHS into Base + Index and, if succeeds, calls
187 // constant index, and invokes allocateCandidatesAndFindBasis with the
277 // Returns whether (Base + Index * Stride) can be folded to an addressing mode.
278 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride,
281 Index->getSExtValue());
288 return isAddFoldable(C.Base, C.Index, C.Stride, TTI);
294 // Returns true if GEP has zero or one non-zero index.
308 return C.Index->isOne() || C.Index->isMinusOne();
312 return C.Index->isZero();
316 return ((C.Index->isOne() || C.Index->isMinusOne()) &&
430 // If LHS is in the form of "Base + Index", then I is in the form of
431 // "(Base + Index) * RHS".
434 // If LHS is in the form of "Base | Index" and Base and Index have no common
436 // Base | Index = Base + Index
437 // and I is thus in the form of "(Base + Index) * RHS".
458 // Symmetrically, try to split RHS to Base + Index.
561 APInt Idx = C.Index->getValue(), BasisIdx = Basis.Index->getValue();