Lines Matching refs:Offset
221 int64_t &Offset, const TargetData &TD) {
224 Offset = 0;
235 return IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD);
246 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD))
258 // N = N + Offset
259 Offset += TD.getStructLayout(ST)->getElementOffset(CI->getZExtValue());
262 Offset += TD.getTypeAllocSize(SQT->getElementType())*CI->getSExtValue();
355 uint64_t Offset = ByteOffset - Index * EltSize;
363 if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr,
367 uint64_t BytesWritten = EltSize - Offset;
372 Offset = 0;
423 int64_t Offset;
424 if (!IsConstantOffsetFromGlobal(C, GVal, Offset, TD))
434 if (Offset < 0) return 0;
437 if (uint64_t(Offset) >= TD.getTypeAllocSize(GV->getInitializer()->getType()))
441 if (!ReadDataFromGlobal(GV->getInitializer(), Offset, RawBytes,
660 APInt Offset =
682 Offset += APInt(BitWidth,
695 Constant *C = ConstantInt::get(Ptr->getContext(), Offset+BasePtr);
729 APInt NewIdx = Offset.udiv(ElemSize);
730 Offset -= NewIdx * ElemSize;
740 if (Offset.uge(SL.getSizeInBytes()))
746 unsigned ElIdx = SL.getElementContainingOffset(Offset.getZExtValue());
749 Offset -= APInt(BitWidth, SL.getElementOffset(ElIdx));
760 if (Offset != 0)