Home
last modified time | relevance | path

Searched refs:Memcpy (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_string.cpp18 TEST_F(ThreadSanitizer, Memcpy) { in TEST_F() argument
21 MainThread().Memcpy(data+1, data0+1, 5); in TEST_F()
44 t1.Memcpy(data, data1, 10); in TEST_F()
45 t2.Memcpy(data, data2, 10, true); in TEST_F()
53 t1.Memcpy(data+5, data1, 1); in TEST_F()
54 t2.Memcpy(data+3, data2, 4, true); in TEST_F()
62 t1.Memcpy(data, data1, 10); in TEST_F()
63 t2.Memcpy(data1, data2, 10, true); in TEST_F()
70 t1.Memcpy(data, data1, 10); in TEST_F()
71 t2.Memcpy(data, data1, 10, true); in TEST_F()
H A Dtsan_test_util.h119 void Memcpy(void *dst, const void *src, int size, bool expect_race = false);
H A Dtsan_test_util_posix.cpp482 void ScopedThread::Memcpy(void *dst, const void *src, int size, in Memcpy() function in ScopedThread
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp527 void llvm::expandMemCpyAsLoop(MemCpyInst *Memcpy, in expandMemCpyAsLoop() argument
530 bool CanOverlap = canOverlap(Memcpy, SE); in expandMemCpyAsLoop()
533 /* InsertBefore */ Memcpy, in expandMemCpyAsLoop()
534 /* SrcAddr */ Memcpy->getRawSource(), in expandMemCpyAsLoop()
535 /* DstAddr */ Memcpy->getRawDest(), in expandMemCpyAsLoop()
539 /* SrcIsVolatile */ Memcpy->isVolatile(), in expandMemCpyAsLoop()
540 /* DstIsVolatile */ Memcpy->isVolatile(), in expandMemCpyAsLoop()
545 /* InsertBefore */ Memcpy, in expandMemCpyAsLoop()
546 /* SrcAddr */ Memcpy->getRawSource(), in expandMemCpyAsLoop()
547 /* DstAddr */ Memcpy->getRawDest(), in expandMemCpyAsLoop()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerIntrinsics.cpp83 auto *Memcpy = cast<MemCpyInst>(Inst); in expandMemIntrinsicUses() local
84 if (shouldExpandOperationWithSize(Memcpy->getLength())) { in expandMemIntrinsicUses()
85 Function *ParentFunc = Memcpy->getParent()->getParent(); in expandMemIntrinsicUses()
88 expandMemCpyAsLoop(Memcpy, TTI); in expandMemIntrinsicUses()
90 Memcpy->eraseFromParent(); in expandMemIntrinsicUses()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp127 if (MemCpyInst *Memcpy = dyn_cast<MemCpyInst>(MemCall)) { in runOnFunction() local
128 expandMemCpyAsLoop(Memcpy, TTI); in runOnFunction()
/llvm-project-15.0.7/libc/benchmarks/
H A DLibcMemoryBenchmark.h199 inline void *Call(ParameterType Parameter, MemcpyFunction Memcpy) { in Call()
200 return Memcpy(DstBuffer + Parameter.OffsetBytes, in Call()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/
H A DLoopIdiomRecognize.h36 static bool Memcpy; member
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dmemcpy-from-string.ll13 ; Memcpy lowering should emit stores of immediates containing string data from
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dmemcpy_alloca.ll4 ; Memcpy is copying known-undef, and is thus removable
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp133 bool DisableLIRP::Memcpy; member in DisableLIRP
138 cl::location(DisableLIRP::Memcpy), cl::init(false),
192 Memcpy, enumerator
544 if (HasMemcpy && !DisableLIRP::Memcpy) { in isLegalStore()
577 : LegalStoreKind::Memcpy; in isLegalStore()
607 case LegalStoreKind::Memcpy: in collectStores()
833 if ((!HasMemcpy && !isa<MemCpyInlineInst>(MCI)) || DisableLIRP::Memcpy) in processLoopMemCpy()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp41 if (const MemCpyInst *Memcpy = dyn_cast<MemCpyInst>(User)) { in isUsedAsMemCpySource() local
42 if (Memcpy->getOperand(1) == V && !Memcpy->isVolatile()) { in isUsedAsMemCpySource()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DNotNullTerminatedResultCheck.cpp750 auto Memcpy = Match({"memcpy", 0, 1, 2, false}); in registerMatchers() local
774 auto AnyOfMatchers = anyOf(Memcpy, MemcpyS, Memmove, MemmoveS, StrncmpRHS, in registerMatchers()
/llvm-project-15.0.7/llvm/test/Transforms/MemCpyOpt/
H A Dmemset-memcpy-oversized.ll111 ; Memcpy is volatile, memset is not. Cannot be optimized.
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DBuiltinsNVPTX.def621 // Memcpy, Memset
/llvm-project-15.0.7/llvm/docs/
H A DStatepoints.rst657 Memcpy and memmove intrinsics take derived pointers as source and destination
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DIntrinsics.td628 // Memcpy semantic that is guaranteed to be inlined.
/llvm-project-15.0.7/llvm/test/Transforms/LoopIdiom/
H A Dbasic.ll1582 ;; Memcpy formation is still preferred over memmove.