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 {
7676 ConversionPatternRewriter &rewriter) const ;
7777
7878 // / 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 ;
8381
8482 // / Returns the type of a pointer to an element of the memref.
8583 Type getElementPtrType (MemRefType type) const ;
Original file line number Diff line number Diff line change @@ -98,13 +98,10 @@ Value ConvertToLLVMPattern::getStridedElementPtr(
9898// Check if the MemRefType `type` is supported by the lowering. We currently
9999// only support memrefs with identity maps.
100100bool ConvertToLLVMPattern::isConvertibleAndHasIdentityMaps (
101- MemRefType type, bool verifyMemorySpace ) const {
101+ MemRefType type) const {
102102 if (!type.getLayout ().isIdentity ())
103103 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));
108105}
109106
110107Type ConvertToLLVMPattern::getElementPtrType (MemRefType type) const {
You can’t perform that action at this time.
0 commit comments