Skip to content

Commit 5af0ffc

Browse files
andrey-golubevermilindwalekar
authored andcommitted
Revert "PR intel#38: Replace BaseMemRef/TensorType class with TypeInterface"
This reverts commit 51f2bc8.
1 parent 5d5d322 commit 5af0ffc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct CastOpInterface
8282
auto rankedResultType = cast<RankedTensorType>(castOp.getType());
8383
return cast<BufferLikeType>(MemRefType::get(
8484
rankedResultType.getShape(), rankedResultType.getElementType(),
85-
llvm::cast<MemRefType>(*maybeSrcBufferType).getLayout(), memorySpace));
85+
llvm::cast<MemRefType>(*maybeSrcBufferType).getLayout(), memorySpace);
8686
}
8787

8888
LogicalResult bufferize(Operation *op, RewriterBase &rewriter,

mlir/lib/IR/BuiltinTypes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ bool mlir::detail::isSupportedMemorySpace(Attribute memorySpace) {
486486
return true;
487487

488488
// Supported built-in attributes.
489-
if (llvm::isa<IntegerAttr, StringAttr, DictionaryAttr, SymbolRefAttr, ArrayAttr>(memorySpace))
489+
if (llvm::isa<IntegerAttr, StringAttr, DictionaryAttr, SymbolRefAttr,
490+
ArrayAttr>(memorySpace))
490491
return true;
491492

492493
// Allow custom dialect attributes.

0 commit comments

Comments
 (0)