Searched refs:CopySize (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 1345 Value *CopySize = MemCpy->getLength(); in performMemCpyToMemSetOptzn() local 1347 if (MemSetSize != CopySize) { in performMemCpyToMemSetOptzn() 1357 auto *CCopySize = dyn_cast<ConstantInt>(CopySize); in performMemCpyToMemSetOptzn() 1371 if (hasUndefContents(MSSA, AA, MemCpy->getSource(), MD, CopySize)) in performMemCpyToMemSetOptzn() 1376 CopySize = MemSetSize; in performMemCpyToMemSetOptzn() 1383 CopySize, MaybeAlign(MemCpy->getDestAlignment())); in performMemCpyToMemSetOptzn() 1457 if (auto *CopySize = dyn_cast<ConstantInt>(M->getLength())) { in processMemCpy() local 1465 TypeSize::getFixed(CopySize->getZExtValue()), Alignment, in processMemCpy()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemorySanitizer.cpp | 4387 Value *CopySize = in finalizeInstrumentation() local 4390 VAArgTLSCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation() 4395 Align(8), CopySize); in finalizeInstrumentation() 4532 Value *CopySize = IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0), in finalizeInstrumentation() local 4538 VAArgTLSCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation() 4560 CopySize); in finalizeInstrumentation() 4726 Value *CopySize = in finalizeInstrumentation() local 4970 Value *CopySize = IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0), in finalizeInstrumentation() local 4998 CopySize); in finalizeInstrumentation() 5290 Value *CopySize = in finalizeInstrumentation() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | MachOYAML.cpp | 44 size_t CopySize = 16 >= Scalar.size() ? 16 : Scalar.size(); in input() local 45 memcpy((void *)Val, Scalar.data(), CopySize); in input()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 1616 ConstantInt *CopySize = nullptr; in translateMemFunc() local 1621 CopySize = dyn_cast<ConstantInt>(MCI->getArgOperand(2)); in translateMemFunc() 1625 CopySize = dyn_cast<ConstantInt>(MCI->getArgOperand(2)); in translateMemFunc() 1629 CopySize = dyn_cast<ConstantInt>(MMI->getArgOperand(2)); in translateMemFunc() 1651 if (AA && CopySize && in translateMemFunc() 1653 SrcPtr, LocationSize::precise(CopySize->getZExtValue()), AAInfo))) { in translateMemFunc()
|