Currently ArrayConstant contains a list of individual constants, like RealConstant.
Instead, it should contain a type (that includes kind) of the element, shape, and then a pointer to contiguous data. This will be fast, and automatically enforce all the things we care about:
- That ArrayConstant only contains constants
- That all constants it contains have the same type and kind
- That it doesn't point to any other node by a mistake
Currently ArrayConstant contains a list of individual constants, like RealConstant.
Instead, it should contain a type (that includes kind) of the element, shape, and then a pointer to contiguous data. This will be fast, and automatically enforce all the things we care about: