Lines Matching refs:ByteOffset
278 static bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, in ReadDataFromGlobal() argument
281 assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal()
297 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal()
298 int n = ByteOffset; in ReadDataFromGlobal()
302 ++ByteOffset; in ReadDataFromGlobal()
310 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
314 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
318 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
325 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal()
327 ByteOffset -= CurEltOffset; in ReadDataFromGlobal()
334 if (ByteOffset < EltSize && in ReadDataFromGlobal()
335 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
348 if (BytesLeft <= NextEltOffset - CurEltOffset - ByteOffset) in ReadDataFromGlobal()
352 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
353 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
354 ByteOffset = 0; in ReadDataFromGlobal()
364 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
365 uint64_t Offset = ByteOffset - Index * EltSize; in ReadDataFromGlobal()
392 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()