Lines Matching defs:Index
117 SmallVector<const Value *> Index(llvm::drop_begin(operand_values()));
118 return GEPOperator::accumulateConstantOffset(getSourceElementType(), Index,
123 Type *SourceType, ArrayRef<const Value *> Index, const DataLayout &DL,
127 if (auto *CI = dyn_cast<ConstantInt>(Index.front())) {
135 auto AccumulateOffset = [&](APInt Index, uint64_t Size) -> bool {
136 Index = Index.sextOrTrunc(Offset.getBitWidth());
140 Offset += Index * IndexedSize;
145 APInt OffsetPlus = Index.smul_ov(IndexedSize, Overflow);
154 auto begin = generic_gep_type_iterator<decltype(Index.begin())>::begin(
155 SourceType, Index.begin());
156 auto end = generic_gep_type_iterator<decltype(Index.end())>::end(Index.end());
209 auto CollectConstantOffset = [&](APInt Index, uint64_t Size) {
210 Index = Index.sextOrTrunc(BitWidth);
212 ConstantOffset += Index * IndexedSize;