This attribute is currently supported on AllocTensorOp only. Future changes will add support to other ops. Furthermore, the memory space is not propagated properly in all bufferization patterns and some of the core bufferization infrastructure. This will be addressed in a subsequent change.
Depends On D128137
this looks fishy, this should be an attribute directly on the op you are interested in and with proper Tablegen definition most of this code and tests become unnecessary
What's the rationale behind the current approach?