forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalise IR metadata. (FuelLabs#2394)
* Generalise the IR metadata. Instead of knowing of specific IR like `Span` or `StateIndex` it now has a simple general representation of numbers, strings, references to other metadata and structs. Also, only a single metadatum reference may be attached to an IR value or function at a time. If multiple metadata are needed then they may be aggregated in a `List` metadatum. * Use the new generalised IR metadata in IR generation. To minimise redundancy a new `MetadataManager` full of `HashMap` caches is used to track previously created or converted metadata, in both the IR generation and ASM generation. * Update the test suite to handle the generalised metadata.
- Loading branch information
Showing
33 changed files
with
2,061 additions
and
1,968 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.