We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BaseMemRefType::isValidElementType
1 parent b6ac26f commit e3b350cCopy full SHA for e3b350c
mlir/lib/Parser/TypeParser.cpp
@@ -219,8 +219,7 @@ Type Parser::parseMemRefType() {
219
return nullptr;
220
221
// Check that memref is formed from allowed types.
222
- if (!elementType.isIntOrIndexOrFloat() &&
223
- !elementType.isa<VectorType, ComplexType>())
+ if (!BaseMemRefType::isValidElementType(elementType))
224
return emitError(typeLoc, "invalid memref element type"), nullptr;
225
226
// Parse semi-affine-map-composition.
0 commit comments