/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMSelectionDAGInfo.cpp | 149 unsigned BytesLeft = SizeVal & 3; in EmitTargetCodeForMemcpy() local 197 if (BytesLeft == 0) in EmitTargetCodeForMemcpy() 201 auto getRemainingValueType = [](unsigned BytesLeft) { in EmitTargetCodeForMemcpy() argument 202 return (BytesLeft >= 2) ? MVT::i16 : MVT::i8; in EmitTargetCodeForMemcpy() 204 auto getRemainingSize = [](unsigned BytesLeft) { in EmitTargetCodeForMemcpy() argument 205 return (BytesLeft >= 2) ? 2 : 1; in EmitTargetCodeForMemcpy() 208 unsigned BytesLeftSave = BytesLeft; in EmitTargetCodeForMemcpy() 210 while (BytesLeft) { in EmitTargetCodeForMemcpy() 211 VT = getRemainingValueType(BytesLeft); in EmitTargetCodeForMemcpy() 212 VTSize = getRemainingSize(BytesLeft); in EmitTargetCodeForMemcpy() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/PTX/ |
D | PTXSelectionDAGInfo.cpp | 51 unsigned BytesLeft = SizeVal & 3; in EmitTargetCodeForMemcpy() local 93 if (BytesLeft == 0) in EmitTargetCodeForMemcpy() 97 unsigned BytesLeftSave = BytesLeft; in EmitTargetCodeForMemcpy() 99 while (BytesLeft) { in EmitTargetCodeForMemcpy() 100 if (BytesLeft >= 2) { in EmitTargetCodeForMemcpy() 115 BytesLeft -= VTSize; in EmitTargetCodeForMemcpy() 120 BytesLeft = BytesLeftSave; in EmitTargetCodeForMemcpy() 121 while (BytesLeft) { in EmitTargetCodeForMemcpy() 122 if (BytesLeft >= 2) { in EmitTargetCodeForMemcpy() 136 BytesLeft -= VTSize; in EmitTargetCodeForMemcpy()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | ARMSelectionDAGInfo.cpp | 49 unsigned BytesLeft = SizeVal & 3; in EmitTargetCodeForMemcpy() local 90 if (BytesLeft == 0) in EmitTargetCodeForMemcpy() 94 unsigned BytesLeftSave = BytesLeft; in EmitTargetCodeForMemcpy() 96 while (BytesLeft) { in EmitTargetCodeForMemcpy() 97 if (BytesLeft >= 2) { in EmitTargetCodeForMemcpy() 112 BytesLeft -= VTSize; in EmitTargetCodeForMemcpy() 117 BytesLeft = BytesLeftSave; in EmitTargetCodeForMemcpy() 118 while (BytesLeft) { in EmitTargetCodeForMemcpy() 119 if (BytesLeft >= 2) { in EmitTargetCodeForMemcpy() 133 BytesLeft -= VTSize; in EmitTargetCodeForMemcpy()
|
/external/llvm/lib/Target/ARM/ |
D | ARMSelectionDAGInfo.cpp | 149 unsigned BytesLeft = SizeVal & 3; in EmitTargetCodeForMemcpy() local 197 if (BytesLeft == 0) in EmitTargetCodeForMemcpy() 201 unsigned BytesLeftSave = BytesLeft; in EmitTargetCodeForMemcpy() 203 while (BytesLeft) { in EmitTargetCodeForMemcpy() 204 if (BytesLeft >= 2) { in EmitTargetCodeForMemcpy() 220 BytesLeft -= VTSize; in EmitTargetCodeForMemcpy() 226 BytesLeft = BytesLeftSave; in EmitTargetCodeForMemcpy() 227 while (BytesLeft) { in EmitTargetCodeForMemcpy() 228 if (BytesLeft >= 2) { in EmitTargetCodeForMemcpy() 242 BytesLeft -= VTSize; in EmitTargetCodeForMemcpy()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86SelectionDAGInfo.cpp | 56 uint64_t BytesLeft() const { return Size % UBytes(); } in BytesLeft() function 127 unsigned BytesLeft = 0; in EmitTargetCodeForMemset() local 160 BytesLeft = SizeVal % UBytes; in EmitTargetCodeForMemset() 184 if (BytesLeft) { in EmitTargetCodeForMemset() 186 unsigned Offset = SizeVal - BytesLeft; in EmitTargetCodeForMemset() 194 DAG.getConstant(BytesLeft, dl, SizeVT), in EmitTargetCodeForMemset() 250 if (Repeats.BytesLeft() > 0 && in EmitTargetCodeForMemcpy() 275 if (Repeats.BytesLeft()) { in EmitTargetCodeForMemcpy() 277 unsigned Offset = Repeats.Size - Repeats.BytesLeft(); in EmitTargetCodeForMemcpy() 288 DAG.getConstant(Repeats.BytesLeft(), dl, in EmitTargetCodeForMemcpy()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86SelectionDAGInfo.cpp | 83 unsigned BytesLeft = 0; in EmitTargetCodeForMemset() local 117 BytesLeft = SizeVal % UBytes; in EmitTargetCodeForMemset() 156 } else if (BytesLeft) { in EmitTargetCodeForMemset() 158 unsigned Offset = SizeVal - BytesLeft; in EmitTargetCodeForMemset() 166 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemset() 217 unsigned BytesLeft = SizeVal % UBytes; in EmitTargetCodeForMemcpy() local 240 if (BytesLeft) { in EmitTargetCodeForMemcpy() 242 unsigned Offset = SizeVal - BytesLeft; in EmitTargetCodeForMemcpy() 251 DAG.getConstant(BytesLeft, SizeVT), in EmitTargetCodeForMemcpy()
|
/external/llvm/lib/Target/X86/ |
D | X86SelectionDAGInfo.cpp | 106 unsigned BytesLeft = 0; in EmitTargetCodeForMemset() local 140 BytesLeft = SizeVal % UBytes; in EmitTargetCodeForMemset() 177 } else if (BytesLeft) { in EmitTargetCodeForMemset() 179 unsigned Offset = SizeVal - BytesLeft; in EmitTargetCodeForMemset() 187 DAG.getConstant(BytesLeft, dl, SizeVT), in EmitTargetCodeForMemset() 244 unsigned BytesLeft = SizeVal % UBytes; in EmitTargetCodeForMemcpy() local 263 if (BytesLeft) { in EmitTargetCodeForMemcpy() 265 unsigned Offset = SizeVal - BytesLeft; in EmitTargetCodeForMemcpy() 276 DAG.getConstant(BytesLeft, dl, SizeVT), in EmitTargetCodeForMemcpy()
|
/external/llvm/lib/DebugInfo/PDB/Raw/ |
D | MappedBlockStream.cpp | 199 uint32_t BytesLeft = Buffer.size(); in readBytes() local 203 while (BytesLeft > 0) { in readBytes() 213 std::min(BytesLeft, Pdb.getBlockSize() - OffsetInBlock); in readBytes() 217 BytesLeft -= BytesInChunk; in readBytes() 237 uint32_t BytesLeft = Buffer.size(); in writeBytes() local 240 while (BytesLeft > 0) { in writeBytes() 243 std::min(BytesLeft, Pdb.getBlockSize() - OffsetInBlock); in writeBytes() 250 BytesLeft -= BytesToWriteInChunk; in writeBytes()
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 387 size_t BytesLeft = MapSize; in getOpenFileImpl() local 393 while (BytesLeft) { in getOpenFileImpl() 395 ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset); in getOpenFileImpl() 397 ssize_t NumRead = ::read(FD, BufPtr, BytesLeft); in getOpenFileImpl() 406 memset(BufPtr, 0, BytesLeft); // zero-initialize rest of the buffer. in getOpenFileImpl() 409 BytesLeft -= NumRead; in getOpenFileImpl()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/MSF/ |
D | MappedBlockStream.cpp | 249 uint32_t BytesLeft = Buffer.size(); in readBytes() local 252 while (BytesLeft > 0) { in readBytes() 261 uint32_t BytesInChunk = std::min(BytesLeft, BlockSize - OffsetInBlock); in readBytes() 265 BytesLeft -= BytesInChunk; in readBytes() 397 uint32_t BytesLeft = Buffer.size(); in writeBytes() local 399 while (BytesLeft > 0) { in writeBytes() 402 std::min(BytesLeft, getBlockSize() - OffsetInBlock); in writeBytes() 411 BytesLeft -= BytesToWriteInChunk; in writeBytes()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | MemoryBuffer.cpp | 387 size_t BytesLeft = MapSize; in getOpenFileImpl() local 393 while (BytesLeft) { in getOpenFileImpl() 395 ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset); in getOpenFileImpl() 397 ssize_t NumRead = ::read(FD, BufPtr, BytesLeft); in getOpenFileImpl() 406 memset(BufPtr, 0, BytesLeft); // zero-initialize rest of the buffer. in getOpenFileImpl() 409 BytesLeft -= NumRead; in getOpenFileImpl()
|
/external/puffin/src/ |
D | puff_reader.h | 31 virtual size_t BytesLeft() const = 0; 50 size_t BytesLeft() const override;
|
D | puffin_unittest.cc | 51 while (puff_reader.BytesLeft() != 0) { in DecompressPuff() 84 *puff_size = *puff_size - puff_reader.BytesLeft(); in DecompressPuff() 111 TEST_AND_RETURN_FALSE(puff_reader.BytesLeft() == 0); in HuffDeflate()
|
D | puff_reader.cc | 112 size_t BufferPuffReader::BytesLeft() const { in BytesLeft() function in puffin::BufferPuffReader
|
D | huffer.cc | 33 while (pr->BytesLeft() != 0) { in HuffDeflate()
|
D | puff_io_unittest.cc | 220 ASSERT_EQ(buf.size() - pr.BytesLeft(), pw.Size()); in TEST() 221 ASSERT_EQ(buf.size() - pr.BytesLeft(), epw.Size()); in TEST()
|
D | puffin_stream.cc | 387 TEST_AND_RETURN_FALSE(puff_reader.BytesLeft() == 0); in Write()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 465 size_t BytesLeft = MapSize; in getOpenFileImpl() local 471 while (BytesLeft) { in getOpenFileImpl() 473 ssize_t NumRead = sys::RetryAfterSignal(-1, ::pread, FD, BufPtr, BytesLeft, in getOpenFileImpl() 474 MapSize - BytesLeft + Offset); in getOpenFileImpl() 476 ssize_t NumRead = sys::RetryAfterSignal(-1, ::read, FD, BufPtr, BytesLeft); in getOpenFileImpl() 483 memset(BufPtr, 0, BytesLeft); // zero-initialize rest of the buffer. in getOpenFileImpl() 486 BytesLeft -= NumRead; in getOpenFileImpl()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | MemoryBuffer.cpp | 323 size_t BytesLeft = MapSize; in getOpenFile() local 327 while (BytesLeft) { in getOpenFile() 328 ssize_t NumRead = ::read(FD, BufPtr, BytesLeft); in getOpenFile() 341 BytesLeft -= NumRead; in getOpenFile()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/ |
D | BPFInstrInfo.cpp | 87 unsigned BytesLeft = CopyLen & (Alignment - 1); in expandMEMCPY() local 89 bool Hanging4Byte = BytesLeft & 0x4; in expandMEMCPY() 90 bool Hanging2Byte = BytesLeft & 0x2; in expandMEMCPY() 91 bool Hanging1Byte = BytesLeft & 0x1; in expandMEMCPY()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ConstantFolding.cpp | 239 unsigned char *CurPtr, unsigned BytesLeft, in ReadDataFromGlobal() argument 257 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal() 267 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal() 271 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal() 289 BytesLeft, TD)) in ReadDataFromGlobal() 301 if (BytesLeft <= NextEltOffset-CurEltOffset-ByteOffset) in ReadDataFromGlobal() 306 BytesLeft -= NextEltOffset-CurEltOffset-ByteOffset; in ReadDataFromGlobal() 319 BytesLeft, TD)) in ReadDataFromGlobal() 321 if (EltSize >= BytesLeft) in ReadDataFromGlobal() 325 BytesLeft -= EltSize; in ReadDataFromGlobal() [all …]
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 287 unsigned BytesLeft, const DataLayout &DL) { in ReadDataFromGlobal() argument 304 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal() 317 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 321 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 325 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 343 BytesLeft, DL)) in ReadDataFromGlobal() 355 if (BytesLeft <= NextEltOffset - CurEltOffset - ByteOffset) in ReadDataFromGlobal() 360 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal() 381 BytesLeft, DL)) in ReadDataFromGlobal() 386 if (BytesWritten >= BytesLeft) in ReadDataFromGlobal() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 365 unsigned BytesLeft, const DataLayout &DL) { in ReadDataFromGlobal() argument 382 for (unsigned i = 0; i != BytesLeft && ByteOffset != IntBytes; ++i) { in ReadDataFromGlobal() 395 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 399 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 403 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 421 BytesLeft, DL)) in ReadDataFromGlobal() 433 if (BytesLeft <= NextEltOffset - CurEltOffset - ByteOffset) in ReadDataFromGlobal() 438 BytesLeft -= NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal() 459 BytesLeft, DL)) in ReadDataFromGlobal() 464 if (BytesWritten >= BytesLeft) in ReadDataFromGlobal() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | TypeRecordMapping.cpp | 53 size_t BytesLeft = IO.maxFieldLength(); in mapNameAndUniqueName() local 58 if (BytesNeeded > BytesLeft) { in mapNameAndUniqueName() 59 size_t BytesToDrop = (BytesNeeded - BytesLeft); in mapNameAndUniqueName() 72 auto N = StringRef(Name).take_front(BytesLeft - 1); in mapNameAndUniqueName()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | BinaryStreamTest.cpp | 46 uint32_t BytesLeft = Size - Ref.size(); in readBytes() local 49 ::memcpy(Ptr + Ref.size(), Data.data(), BytesLeft); in readBytes() 79 uint32_t BytesLeft = SrcData.size() - Ref.size(); in writeBytes() local 81 ::memcpy(&Data[0], SrcData.data() + Ref.size(), BytesLeft); in writeBytes()
|