Both insertion points are valid. This is to make BufferizableOpInteface-based bufferization compatible with existing partial bufferization test cases. (So less changes are necessary to unit tests.)
Depends On D117985
| Paths 
 |  Differential  D117986  
[mlir][bufferize] Change insertion point for ToTensorOps ClosedPublic Authored by springerm on Jan 23 2022, 7:40 AM. 
Details Summary Both insertion points are valid. This is to make BufferizableOpInteface-based bufferization compatible with existing partial bufferization test cases. (So less changes are necessary to unit tests.) Depends On D117985 
Diff Detail 
 Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 21 others.  ·  View Herald TranscriptJan 23 2022, 7:40 AM This revision is now accepted and ready to land.Jan 24 2022, 1:56 AM Closed by commit rGc30d2893a43d: [mlir][bufferize] Change insertion point for ToTensorOps (authored by springerm).  ·  Explain WhyJan 24 2022, 7:43 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 402530 mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
 mlir/test/Dialect/Linalg/comprehensive-function-bufferize.mlir
 mlir/test/Dialect/Linalg/comprehensive-module-bufferize-alloca.mlir
 mlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||