Lines Matching refs:ByteOffset
375 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() argument
377 assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal()
393 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal()
394 int n = ByteOffset; in ReadDataFromGlobal()
398 ++ByteOffset; in ReadDataFromGlobal()
406 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
410 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
414 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
421 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal()
423 ByteOffset -= CurEltOffset; in ReadDataFromGlobal()
430 if (ByteOffset < EltSize && in ReadDataFromGlobal()
431 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
444 if (BytesLeft <= NextEltOffset - CurEltOffset - ByteOffset) in ReadDataFromGlobal()
448 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
449 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
450 ByteOffset = 0; in ReadDataFromGlobal()
460 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
461 uint64_t Offset = ByteOffset - Index * EltSize; in ReadDataFromGlobal()
488 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()