[llvm] [mlir][bufferization] Generalize tensor slice rules to subset ops (PR #65619)

Martin Erhart via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 02:27:10 PDT 2023


================
@@ -1172,6 +1107,11 @@ void mlir::tensor::registerBufferizableOpInterfaceExternalModels(
     ReshapeOp::attachInterface<ReshapeOpInterface>(*ctx);
     SplatOp::attachInterface<SplatOpInterface>(*ctx);
 
+    // SubsetOpInterface models.
+    InsertSliceOp::attachInterface<InsertSliceOpSubsetOpInterface>(*ctx);
+    ParallelInsertSliceOp::attachInterface<
+        ParallelInsertSliceOpSubsetOpInterface>(*ctx);
+
----------------
maerhart wrote:

That looks great, thanks!

https://github.com/llvm/llvm-project/pull/65619


More information about the llvm-commits mailing list