This operation has been deprecated for a very long time now, so remove
it completely.
https://llvm.discourse.group/t/rfc-memref-memory-shape-as-attribute/2229
Differential Revision: https://reviews.llvm.org/D132466
return *this;
}
- // [deprecated] `setMemorySpace(Attribute)` should be used instead.
- Builder &setMemorySpace(unsigned newMemorySpace);
-
operator MemRefType() {
return MemRefType::get(shape, elementType, layout, memorySpace);
}
if (type.getMemorySpaceAsInt() !=
gpu::GPUDialect::getPrivateAddressSpace())
return llvm::None;
- return converter.convertType(MemRefType::Builder(type).setMemorySpace(0));
+ return converter.convertType(MemRefType::Builder(type).setMemorySpace(
+ IntegerAttr::get(IntegerType::get(m.getContext(), 64), 0)));
});
// Lowering for MMAMatrixType.
converter.addConversion([&](gpu::MMAMatrixType type) -> Type {
return static_cast<unsigned>(memorySpace.cast<IntegerAttr>().getInt());
}
-MemRefType::Builder &
-MemRefType::Builder::setMemorySpace(unsigned newMemorySpace) {
- memorySpace =
- wrapIntegerMemorySpace(newMemorySpace, elementType.getContext());
- return *this;
-}
-
unsigned MemRefType::getMemorySpaceAsInt() const {
return detail::getMemorySpaceAsInt(getMemorySpace());
}