Skip to content

Commit dc43c60

Browse files
nikita-kudsramasit
authored andcommitted
Add FlatSymbolRefAttr and ArrayAttr for memory space representation (#44/#45)
1 parent 1a0b5b8 commit dc43c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/IR/BuiltinTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ bool mlir::detail::isSupportedMemorySpace(Attribute memorySpace) {
474474
return true;
475475

476476
// Supported built-in attributes.
477-
if (llvm::isa<IntegerAttr, StringAttr, DictionaryAttr>(memorySpace))
477+
if (llvm::isa<IntegerAttr, StringAttr, DictionaryAttr, SymbolRefAttr, ArrayAttr>(memorySpace))
478478
return true;
479479

480480
// Allow custom dialect attributes.

0 commit comments

Comments
 (0)