Remove unused static helper getMemRefTypeFromTensorType() (NFC)

This commit is contained in:
Mehdi Amini 2020-08-08 05:37:42 +00:00
parent eebd0a57fc
commit 872bdc0be7
1 changed files with 0 additions and 9 deletions

View File

@ -2989,15 +2989,6 @@ static Type getTensorTypeFromMemRefType(Type type) {
return NoneType::get(type.getContext());
}
static Type getMemRefTypeFromTensorType(Type type) {
if (auto tensor = type.dyn_cast<MemRefType>())
return MemRefType::get(tensor.getShape(), tensor.getElementType());
if (auto tensor = type.dyn_cast<UnrankedMemRefType>())
return UnrankedMemRefType::get(tensor.getElementType(),
tensor.getMemorySpace());
return NoneType::get(type.getContext());
}
//===----------------------------------------------------------------------===//
// TruncateIOp
//===----------------------------------------------------------------------===//