Lines Matching refs:ByteOffset
417 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() argument
419 assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal()
433 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal()
434 unsigned n = ByteOffset; in ReadDataFromGlobal()
438 ++ByteOffset; in ReadDataFromGlobal()
446 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
450 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
454 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
461 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal()
463 ByteOffset -= CurEltOffset; in ReadDataFromGlobal()
470 if (ByteOffset < EltSize && in ReadDataFromGlobal()
471 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
484 if (BytesLeft <= NextEltOffset - CurEltOffset - ByteOffset) in ReadDataFromGlobal()
488 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
489 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
490 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()