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

Matthias Springer via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 01:57:27 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);
+
----------------
matthias-springer wrote:

Moved to separate file and registering the models together with BufferizableOpInterface models.

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


More information about the llvm-commits mailing list