Searched refs:CopySize (Results 1 – 6 of 6) sorted by relevance
| /openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerMutate.cpp | 321 size_t CopySize = Rand(ToSize - ToBeg) + 1; in CopyPartOf() local 322 assert(ToBeg + CopySize <= ToSize); in CopyPartOf() 323 CopySize = std::min(CopySize, FromSize); in CopyPartOf() 324 size_t FromBeg = Rand(FromSize - CopySize + 1); in CopyPartOf() 325 assert(FromBeg + CopySize <= FromSize); in CopyPartOf() 326 memmove(To + ToBeg, From + FromBeg, CopySize); in CopyPartOf() 338 size_t CopySize = Rand(MaxCopySize) + 1; in InsertPartOf() local 339 size_t FromBeg = Rand(FromSize - CopySize + 1); in InsertPartOf() 340 assert(FromBeg + CopySize <= FromSize); in InsertPartOf() 342 assert(ToInsertPos + CopySize <= MaxToSize); in InsertPartOf() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-exegesis/lib/X86/ |
| H A D | X86Counter.cpp | 65 size_t CopySize = kDataBufferSize - Offset; in copyDataBuffer() local 66 memcpy(Buf, Start + Offset, CopySize); in copyDataBuffer() 67 if (CopySize >= DataSize) in copyDataBuffer() 70 memcpy(Buf + CopySize, Start, Offset); in copyDataBuffer()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 1396 Value *CopySize = MemCpy->getLength(); in performMemCpyToMemSetOptzn() local 1398 if (MemSetSize != CopySize) { in performMemCpyToMemSetOptzn() 1408 auto *CCopySize = dyn_cast<ConstantInt>(CopySize); in performMemCpyToMemSetOptzn() 1422 if (hasUndefContents(MSSA, BAA, MemCpy->getSource(), MD, CopySize)) in performMemCpyToMemSetOptzn() 1427 CopySize = MemSetSize; in performMemCpyToMemSetOptzn() 1434 CopySize, MemCpy->getDestAlign()); in performMemCpyToMemSetOptzn() 1508 if (auto *CopySize = dyn_cast<ConstantInt>(M->getLength())) { in processMemCpy() local 1511 TypeSize::getFixed(CopySize->getZExtValue()), in processMemCpy()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemorySanitizer.cpp | 4797 Value *CopySize = IRB.CreateAdd( in finalizeInstrumentation() local 4799 VAArgTLSCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation() 4800 IRB.CreateMemCpy(VAArgTLSCopy, Align(8), MS.VAArgTLS, Align(8), CopySize); in finalizeInstrumentation() 4802 VAArgTLSOriginCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation() 4804 Align(8), CopySize); in finalizeInstrumentation() 4940 Value *CopySize = in finalizeInstrumentation() local 4946 VAArgTLSCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation() 4947 IRB.CreateMemCpy(VAArgTLSCopy, Align(8), MS.VAArgTLS, Align(8), CopySize); in finalizeInstrumentation() 4968 CopySize); in finalizeInstrumentation() 5130 Value *CopySize = IRB.CreateAdd( in finalizeInstrumentation() local [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/ |
| H A D | MachOYAML.cpp | 45 size_t CopySize = 16 >= Scalar.size() ? 16 : Scalar.size(); in input() local 46 memcpy((void *)Val, Scalar.data(), CopySize); in input()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 1617 ConstantInt *CopySize = nullptr; in translateMemFunc() local 1622 CopySize = dyn_cast<ConstantInt>(MCI->getArgOperand(2)); in translateMemFunc() 1626 CopySize = dyn_cast<ConstantInt>(MCI->getArgOperand(2)); in translateMemFunc() 1630 CopySize = dyn_cast<ConstantInt>(MMI->getArgOperand(2)); in translateMemFunc() 1652 if (AA && CopySize && in translateMemFunc() 1654 SrcPtr, LocationSize::precise(CopySize->getZExtValue()), AAInfo))) { in translateMemFunc()
|