Home
last modified time | relevance | path

Searched refs:copyOp (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/mlir/lib/Transforms/
DCopyRemoval.cpp29 getOperation()->walk([&](CopyOpInterface copyOp) { in runOnOperation() argument
30 reuseCopySourceAsTarget(copyOp); in runOnOperation()
31 reuseCopyTargetAsSource(copyOp); in runOnOperation()
133 void reuseCopySourceAsTarget(CopyOpInterface copyOp) { in reuseCopySourceAsTarget() argument
134 if (eraseList.count(copyOp)) in reuseCopySourceAsTarget()
137 Value from = copyOp.getSource(); in reuseCopySourceAsTarget()
138 Value to = copyOp.getTarget(); in reuseCopySourceAsTarget()
140 Operation *copy = copyOp.getOperation(); in reuseCopySourceAsTarget()
184 void reuseCopyTargetAsSource(CopyOpInterface copyOp) { in reuseCopyTargetAsSource() argument
185 if (eraseList.count(copyOp)) in reuseCopyTargetAsSource()
[all …]
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DVectorization.cpp308 if (auto copyOp = dyn_cast<linalg::CopyOp>(op)) { in vectorizeLinalgOp() local
314 Value vector = transferReadVector(builder, copyOp.input()); in vectorizeLinalgOp()
315 transferWriteVector(builder, vector, copyOp.output()); in vectorizeLinalgOp()
430 CopyOp copyOp; in matchAndRewrite() local
438 copyOp = newCopyOp; in matchAndRewrite()
442 if (!copyOp) in matchAndRewrite()
444 LLVM_DEBUG(llvm::dbgs() << dbgPref << "with copy " << *copyOp); in matchAndRewrite()
453 if (mayExistInterleavedUses(newFillOp, copyOp, {viewOrAlloc, subView})) in matchAndRewrite()
466 Value in = copyOp.getInput(0); in matchAndRewrite()
478 rewriter.eraseOp(copyOp); in matchAndRewrite()
[all …]
DLoops.cpp184 static void emitScalarImplementation(ArrayRef<Value> allIvs, CopyOp copyOp) { in emitScalarImplementation() argument
185 assert(copyOp.hasBufferSemantics() && in emitScalarImplementation()
187 auto nPar = copyOp.getNumParallelLoops(); in emitScalarImplementation()
190 permuteIvs(allIvs.take_front(nPar), copyOp.inputPermutation()); in emitScalarImplementation()
192 permuteIvs(allIvs.take_front(nPar), copyOp.outputPermutation()); in emitScalarImplementation()
195 IndexedValueType O(copyOp.getOutputBuffer(0)), I(copyOp.getInput(0)); in emitScalarImplementation()