Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DAllocTensorElimination.cpp47 Operation *allocTensorOp) { in insertionPointDominatesUses() argument
48 for (Operation *user : allocTensorOp->getUsers()) in insertionPointDominatesUses()
57 findValidInsertionPoint(Operation *allocTensorOp, in findValidInsertionPoint() argument
64 insertionPointCandidates.push_back(allocTensorOp); in findValidInsertionPoint()
87 if (!insertionPointDominatesUses(domInfo, insertionPoint, allocTensorOp)) in findValidInsertionPoint()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/IR/
H A DBufferizableOpInterface.cpp106 auto allocTensorOp = b.create<AllocTensorOp>(loc, tensorType, dynamicSizes, in allocateTensorForShapedValue() local
108 allocTensorOp->setAttr(BufferizationDialect::kEscapeAttrName, in allocateTensorForShapedValue()
113 return allocTensorOp.getResult(); in allocateTensorForShapedValue()
117 allocTensorOp.setMemorySpaceAttr( in allocateTensorForShapedValue()
120 return allocTensorOp.getResult(); in allocateTensorForShapedValue()
H A DBufferizationOps.cpp335 auto allocTensorOp = dimOp.getSource().getDefiningOp<AllocTensorOp>(); in matchAndRewrite() local
336 if (!allocTensorOp || !maybeConstantIndex) in matchAndRewrite()
338 if (!allocTensorOp.getType().isDynamicDim(*maybeConstantIndex)) in matchAndRewrite()
341 dimOp, allocTensorOp.getDynamicSize(rewriter, *maybeConstantIndex)); in matchAndRewrite()