Home
last modified time | relevance | path

Searched refs:CopySize (Results 1 – 5 of 5) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
HDFuzzerMutate.cpp302 size_t CopySize = Rand(ToSize - ToBeg) + 1; in CopyPartOf() local
303 assert(ToBeg + CopySize <= ToSize); in CopyPartOf()
304 CopySize = std::min(CopySize, FromSize); in CopyPartOf()
305 size_t FromBeg = Rand(FromSize - CopySize + 1); in CopyPartOf()
306 assert(FromBeg + CopySize <= FromSize); in CopyPartOf()
307 memmove(To + ToBeg, From + FromBeg, CopySize); in CopyPartOf()
319 size_t CopySize = Rand(MaxCopySize) + 1; in InsertPartOf() local
320 size_t FromBeg = Rand(FromSize - CopySize + 1); in InsertPartOf()
321 assert(FromBeg + CopySize <= FromSize); in InsertPartOf()
323 assert(ToInsertPos + CopySize <= MaxToSize); in InsertPartOf()
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
HDMemCpyOptimizer.cpp1104 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength()); in performMemCpyToMemSetOptzn() local
1105 if (CopySize->getZExtValue() > MemSetSize->getZExtValue()) { in performMemCpyToMemSetOptzn()
1113 if (DepInfo.isDef() && hasUndefContents(DepInfo.getInst(), CopySize)) in performMemCpyToMemSetOptzn()
1114 CopySize = MemSetSize; in performMemCpyToMemSetOptzn()
1120 Builder.CreateMemSet(MemCpy->getRawDest(), MemSet->getOperand(1), CopySize, in performMemCpyToMemSetOptzn()
1165 ConstantInt *CopySize = dyn_cast<ConstantInt>(M->getLength()); in processMemCpy() local
1166 if (!CopySize) return false; in processMemCpy()
1181 CopySize->getZExtValue(), Align, in processMemCpy()
1198 if (hasUndefContents(SrcDepInfo.getInst(), CopySize)) { in processMemCpy()
/freebsd-11-stable/sys/contrib/dev/acpica/components/utilities/
HDutcopy.c828 ACPI_SIZE CopySize; in AcpiUtCopySimpleObject() local
840 CopySize = sizeof (ACPI_OPERAND_OBJECT); in AcpiUtCopySimpleObject()
843 CopySize = sizeof (ACPI_NAMESPACE_NODE); in AcpiUtCopySimpleObject()
847 ACPI_CAST_PTR (char, SourceDesc), CopySize); in AcpiUtCopySimpleObject()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
HDMemorySanitizer.cpp3992 Value *CopySize = in finalizeInstrumentation() local
3995 VAArgTLSCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation()
3996 IRB.CreateMemCpy(VAArgTLSCopy, Align(8), MS.VAArgTLS, Align(8), CopySize); in finalizeInstrumentation()
3998 VAArgTLSOriginCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation()
4000 Align(8), CopySize); in finalizeInstrumentation()
4138 Value *CopySize = IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0), in finalizeInstrumentation() local
4144 VAArgTLSCopy = IRB.CreateAlloca(Type::getInt8Ty(*MS.C), CopySize); in finalizeInstrumentation()
4145 IRB.CreateMemCpy(VAArgTLSCopy, Align(8), MS.VAArgTLS, Align(8), CopySize); in finalizeInstrumentation()
4166 CopySize); in finalizeInstrumentation()
4333 Value *CopySize = in finalizeInstrumentation() local
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
HDMachOYAML.cpp44 size_t CopySize = 16 >= Scalar.size() ? 16 : Scalar.size(); in input() local
45 memcpy((void *)Val, Scalar.data(), CopySize); in input()