Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Moore] Move array types into ODS (#7088)
Move the definitions of all array types from C++ land into `MooreTypes.td`. This removes a significant amount of redundant code and simplifies the dialect's type system. Replace packed and unpacked ranges (`T [4:3]` or `T [2:4]`) with a new type that discards the directionality and offset of the range. This information is no longer needed at the IR level. Any meaning that the offsets have can be encoded in the corresponding ops. Both ranges are now represented as `array<2 x T>` and `array<3 x T>`, respectively. Combine unpacked ranges (`T foo [6:2]`) and unpacked arrays (`T foo [42]`) into a single `uarray<N x T>` type.
- Loading branch information