Skip to content

Commit

Permalink
Add ArrayAttr for memory space representation (llvm#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-kud authored and hrotuna committed Jul 25, 2022
1 parent b66e2f6 commit 2f4572a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/IR/BuiltinTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ bool mlir::detail::isSupportedMemorySpace(Attribute memorySpace) {
return true;

// Supported built-in attributes.
if (memorySpace.isa<IntegerAttr, StringAttr, DictionaryAttr, SymbolRefAttr>())
if (memorySpace.isa<IntegerAttr, StringAttr, DictionaryAttr, SymbolRefAttr, ArrayAttr>())
return true;

// Allow custom dialect attributes.
Expand Down

0 comments on commit 2f4572a

Please sign in to comment.