Lines Matching refs:ByteOffset

238 static bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset,  in ReadDataFromGlobal()  argument
241 assert(ByteOffset <= TD.getTypeAllocSize(C->getType()) && in ReadDataFromGlobal()
257 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal()
258 CurPtr[i] = (unsigned char)(Val >> (ByteOffset * 8)); in ReadDataFromGlobal()
259 ++ByteOffset; in ReadDataFromGlobal()
267 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
271 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
278 unsigned Index = SL->getElementContainingOffset(ByteOffset); in ReadDataFromGlobal()
280 ByteOffset -= CurEltOffset; in ReadDataFromGlobal()
287 if (ByteOffset < EltSize && in ReadDataFromGlobal()
288 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
301 if (BytesLeft <= NextEltOffset-CurEltOffset-ByteOffset) in ReadDataFromGlobal()
305 CurPtr += NextEltOffset-CurEltOffset-ByteOffset; in ReadDataFromGlobal()
306 BytesLeft -= NextEltOffset-CurEltOffset-ByteOffset; in ReadDataFromGlobal()
307 ByteOffset = 0; in ReadDataFromGlobal()
315 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
316 uint64_t Offset = ByteOffset - Index * EltSize; in ReadDataFromGlobal()
333 uint64_t Index = ByteOffset / EltSize; in ReadDataFromGlobal()
334 uint64_t Offset = ByteOffset - Index * EltSize; in ReadDataFromGlobal()
352 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()