Lines Matching refs:ByteOffset
428 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() argument
430 assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal()
446 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal()
447 int n = ByteOffset; in ReadDataFromGlobal()
451 ++ByteOffset; in ReadDataFromGlobal()
459 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
463 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
467 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
474 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal()
476 ByteOffset -= CurEltOffset; in ReadDataFromGlobal()
483 if (ByteOffset < EltSize && in ReadDataFromGlobal()
484 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
497 if (BytesLeft <= NextEltOffset - CurEltOffset - ByteOffset) in ReadDataFromGlobal()
501 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
502 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
503 ByteOffset = 0; in ReadDataFromGlobal()
521 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
522 uint64_t Offset = ByteOffset - Index * EltSize; in ReadDataFromGlobal()
544 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()