Lines Matching refs:ByteOffset
421 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() argument
423 assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal()
439 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal()
440 int n = ByteOffset; in ReadDataFromGlobal()
444 ++ByteOffset; in ReadDataFromGlobal()
452 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
456 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
460 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
467 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal()
469 ByteOffset -= CurEltOffset; in ReadDataFromGlobal()
476 if (ByteOffset < EltSize && in ReadDataFromGlobal()
477 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
490 if (BytesLeft <= NextEltOffset - CurEltOffset - ByteOffset) in ReadDataFromGlobal()
494 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
495 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
496 ByteOffset = 0; in ReadDataFromGlobal()
514 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
515 uint64_t Offset = ByteOffset - Index * EltSize; in ReadDataFromGlobal()
537 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()