File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
include/mlir/Conversion/LLVMCommon
lib/Conversion/LLVMCommon Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,8 @@ class ConvertToLLVMPattern : public ConversionPattern {
76
76
ConversionPatternRewriter &rewriter) const ;
77
77
78
78
// / Returns if the given memref type is convertible to LLVM and has an
79
- // / identity layout map. If `verifyMemorySpace` is set to "false", the memory
80
- // / space of the memref type is ignored.
81
- bool isConvertibleAndHasIdentityMaps (MemRefType type,
82
- bool verifyMemorySpace = true ) const ;
79
+ // / identity layout map.
80
+ bool isConvertibleAndHasIdentityMaps (MemRefType type) const ;
83
81
84
82
// / Returns the type of a pointer to an element of the memref.
85
83
Type getElementPtrType (MemRefType type) const ;
Original file line number Diff line number Diff line change @@ -98,13 +98,10 @@ Value ConvertToLLVMPattern::getStridedElementPtr(
98
98
// Check if the MemRefType `type` is supported by the lowering. We currently
99
99
// only support memrefs with identity maps.
100
100
bool ConvertToLLVMPattern::isConvertibleAndHasIdentityMaps (
101
- MemRefType type, bool verifyMemorySpace ) const {
101
+ MemRefType type) const {
102
102
if (!type.getLayout ().isIdentity ())
103
103
return false ;
104
- // If the memory space should not be verified, just check the element type.
105
- Type typeToVerify =
106
- verifyMemorySpace ? static_cast <Type>(type) : type.getElementType ();
107
- return static_cast <bool >(typeConverter->convertType (typeToVerify));
104
+ return static_cast <bool >(typeConverter->convertType (type));
108
105
}
109
106
110
107
Type ConvertToLLVMPattern::getElementPtrType (MemRefType type) const {
You can’t perform that action at this time.
0 commit comments