Home
last modified time | relevance | path

Searched refs:MemCpy (Results 1 – 25 of 34) sorted by relevance

12

/external/llvm-project/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp1137 bool MemCpyOptPass::processMemSetMemCpyDependence(MemCpyInst *MemCpy, in processMemSetMemCpyDependence() argument
1140 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence()
1145 if (!AA->isNoAlias(MemoryLocation(MemCpy->getSource(), in processMemSetMemCpyDependence()
1147 MemoryLocation(MemCpy->getDest(), in processMemSetMemCpyDependence()
1157 MSSA->getMemoryAccess(MemCpy))) { in processMemSetMemCpyDependence()
1164 MemoryLocation::getForDest(MemSet), false, MemCpy->getIterator(), in processMemSetMemCpyDependence()
1165 MemCpy->getParent()); in processMemSetMemCpyDependence()
1171 Value *Dest = MemCpy->getRawDest(); in processMemSetMemCpyDependence()
1173 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence()
1175 if (mayBeVisibleThroughUnwinding(Dest, MemSet, MemCpy)) in processMemSetMemCpyDependence()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp1006 bool MemCpyOptPass::processMemSetMemCpyDependence(MemCpyInst *MemCpy, in processMemSetMemCpyDependence() argument
1009 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence()
1015 MemCpy->getIterator(), MemCpy->getParent()); in processMemSetMemCpyDependence()
1020 Value *Dest = MemCpy->getRawDest(); in processMemSetMemCpyDependence()
1022 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence()
1029 std::max(MemSet->getDestAlignment(), MemCpy->getDestAlignment()); in processMemSetMemCpyDependence()
1034 IRBuilder<> Builder(MemCpy); in processMemSetMemCpyDependence()
1088 bool MemCpyOptPass::performMemCpyToMemSetOptzn(MemCpyInst *MemCpy, in performMemCpyToMemSetOptzn() argument
1094 if (!AA.isMustAlias(MemSet->getRawDest(), MemCpy->getRawSource())) in performMemCpyToMemSetOptzn()
1104 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength()); in performMemCpyToMemSetOptzn()
[all …]
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp1046 bool MemCpyOptPass::processMemSetMemCpyDependence(MemCpyInst *MemCpy, in processMemSetMemCpyDependence() argument
1049 if (MemSet->getDest() != MemCpy->getDest()) in processMemSetMemCpyDependence()
1055 MemCpy->getIterator(), MemCpy->getParent()); in processMemSetMemCpyDependence()
1060 Value *Dest = MemCpy->getRawDest(); in processMemSetMemCpyDependence()
1062 Value *SrcSize = MemCpy->getLength(); in processMemSetMemCpyDependence()
1069 std::max(MemSet->getAlignment(), MemCpy->getAlignment()); in processMemSetMemCpyDependence()
1074 IRBuilder<> Builder(MemCpy); in processMemSetMemCpyDependence()
1111 bool MemCpyOptPass::performMemCpyToMemSetOptzn(MemCpyInst *MemCpy, in performMemCpyToMemSetOptzn() argument
1114 if (MemSet->getRawDest() != MemCpy->getRawSource()) in performMemCpyToMemSetOptzn()
1117 ConstantInt *CopySize = cast<ConstantInt>(MemCpy->getLength()); in performMemCpyToMemSetOptzn()
[all …]
/external/llvm-project/llvm/include/llvm/Transforms/Scalar/
DMemCpyOptimizer.h71 bool processMemSetMemCpyDependence(MemCpyInst *MemCpy, MemSetInst *MemSet);
72 bool performMemCpyToMemSetOptzn(MemCpyInst *MemCpy, MemSetInst *MemSet);
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp318 } else if (auto *MemCpy = dyn_cast<MemTransferInst>(I)) { in replace() local
319 auto *SrcV = getReplacement(MemCpy->getRawSource()); in replace()
323 assert(getReplacement(MemCpy->getRawDest()) && in replace()
328 IC.Builder.SetInsertPoint(MemCpy); in replace()
330 MemCpy->getIntrinsicID(), MemCpy->getRawDest(), MemCpy->getDestAlign(), in replace()
331 SrcV, MemCpy->getSourceAlign(), MemCpy->getLength(), in replace()
332 MemCpy->isVolatile()); in replace()
334 MemCpy->getAAMetadata(AAMD); in replace()
338 IC.eraseInstFromFunction(*MemCpy); in replace()
339 WorkMap[MemCpy] = NewI; in replace()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp886 MemCpyInst *MemCpy = cast<MemCpyInst>(Intr); in handleAlloca() local
887 Builder.CreateMemCpy(MemCpy->getRawDest(), MemCpy->getDestAlign(), in handleAlloca()
888 MemCpy->getRawSource(), MemCpy->getSourceAlign(), in handleAlloca()
889 MemCpy->getLength(), MemCpy->isVolatile()); in handleAlloca()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp800 MemCpyInst *MemCpy = cast<MemCpyInst>(Intr); in handleAlloca() local
801 Builder.CreateMemCpy(MemCpy->getRawDest(), MemCpy->getRawSource(), in handleAlloca()
802 MemCpy->getLength(), MemCpy->getAlignment(), in handleAlloca()
803 MemCpy->isVolatile()); in handleAlloca()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DLowerMemIntrinsics.h45 void expandMemCpyAsLoop(MemCpyInst *MemCpy, const TargetTransformInfo &TTI);
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp1031 MemCpyInst *MemCpy = cast<MemCpyInst>(Intr); in handleAlloca() local
1032 Builder.CreateMemCpy(MemCpy->getRawDest(), MemCpy->getDestAlign(), in handleAlloca()
1033 MemCpy->getRawSource(), MemCpy->getSourceAlign(), in handleAlloca()
1034 MemCpy->getLength(), MemCpy->isVolatile()); in handleAlloca()
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DLowerMemIntrinsics.h45 void expandMemCpyAsLoop(MemCpyInst *MemCpy, const TargetTransformInfo &TTI);
/external/llvm-project/llvm/test/Analysis/BasicAA/
Dphi-values-usage.ll11 ; CHECK-MEMCPY: Executing Pass 'MemCpy Optimization'
12 ; CHECK-MEMCPY-DAG: Freeing Pass 'MemCpy Optimization'
/external/llvm/test/Transforms/MemCpyOpt/
Dlifetime.ll3 ; performCallSlotOptzn in MemCpy should not exchange the calls to
/external/llvm-project/llvm/test/Transforms/MemCpyOpt/
Dlifetime.ll5 ; performCallSlotOptzn in MemCpy should not exchange the calls to
Dinvariant.start.ll2 ; MemCpy optimizations should take place even in presence of invariant.start
/external/llvm/test/Transforms/InstCombine/
Dsimplify-libcalls.ll117 define i32 @MemCpy() {
128 ; CHECK-LABEL: @MemCpy(
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dsimplify-libcalls.ll117 define i32 @MemCpy() {
128 ; CHECK-LABEL: @MemCpy(
/external/llvm/test/Feature/
Doptnone-opt.ll45 ; OPT-O1-DAG: Skipping pass 'MemCpy Optimization'
/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp816 Value *MemCpy = M->getOrInsertFunction( in emitMemCpyChk() local
822 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in emitMemCpyChk()
823 if (const Function *F = dyn_cast<Function>(MemCpy->stripPointerCasts())) in emitMemCpyChk()
/external/llvm-project/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp1101 FunctionCallee MemCpy = M->getOrInsertFunction( in emitMemCpyChk() local
1107 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in emitMemCpyChk()
1109 dyn_cast<Function>(MemCpy.getCallee()->stripPointerCasts())) in emitMemCpyChk()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp916 FunctionCallee MemCpy = M->getOrInsertFunction( in emitMemCpyChk() local
922 CallInst *CI = B.CreateCall(MemCpy, {Dst, Src, Len, ObjSize}); in emitMemCpyChk()
924 dyn_cast<Function>(MemCpy.getCallee()->stripPointerCasts())) in emitMemCpyChk()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_builder_mixin.h171 llvm::CallInst* MemCpy(Args&&... args) { in MemCpy() function
/external/llvm-project/llvm/test/Other/
Dopt-LTO-pipeline.ll117 ; CHECK-NEXT: MemCpy Optimization
Dopt-O2-pipeline.ll152 ; CHECK-NEXT: MemCpy Optimization
Dopt-Os-pipeline.ll138 ; CHECK-NEXT: MemCpy Optimization
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc482 MemCpy(program_buffer_address, /*DstAlign=*/llvm::Align(1), in EmitXfeedTransfer()
487 MemCpy(acquired_pointer, /*DstAlign=*/llvm::Align(1), in EmitXfeedTransfer()
577 MemCpy(destination_addresses[i], in HandleSort()
1094 MemCpy(operand_ptrs.back(), /*DstAlign=*/llvm::Align(1), in_ptr, in HandleAllReduceSingleReplica()
3187 MemCpy(destination_value, /*DstAlign=*/llvm::Align(1), source_value, in EmitMemcpy()

12