xdslproject / xdsl

A Python Compiler Design Toolkit
Other
255 stars 68 forks source link

Function _parse_builtin_densearray_attr fails when parsing a dense array with element_type IndexType #3154

Open watermelonwolverine opened 3 weeks ago

watermelonwolverine commented 3 weeks ago

The function _parse_builtin_densearray_attr does not accept dense arrays with element_type IndexType. On the other hand, the function DenseArrayBase.create_dense_int_or_index does accept IndexType as element_type.

superlopuh commented 3 weeks ago

Tagged as "good first issue", I expect resolving this is looking up what MLIR does for this, and making sure that both the functions do the expected thing.