Skip to content

Change the ASR representation of ArrayConstant #3581

@certik

Description

@certik

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

Metadata

Metadata

Assignees

Labels

asrASR Related changesenhancementIssues or pull request for enhancing existing functionality

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions