Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to resolve bindings to built-in functions, types and variables #1101

Merged
merged 39 commits into from
Oct 22, 2024

Conversation

ggiraldez
Copy link
Contributor

This PR adds the infrastructure to the Bindings implementation to be able to:

  • define built-in functions, types and global variables, optionally specifying version ranges for those
  • generate an internal built-ins file that can be consumed by the implementation when creating a Bindings object for a specific language version
  • resolve references to built-ins in Solidity by adding some rules to the graph builder file to connect the built-ins parsed file and make all definitions there available to all other ingested source units

So far, this contains just a few built-ins to test the infrastructure and verify that all functions, types and variables can be resolved.

Copy link

changeset-bot bot commented Sep 20, 2024

⚠️ No Changeset found

Latest commit: 74748ed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ggiraldez ggiraldez marked this pull request as ready for review September 20, 2024 19:33
@ggiraldez ggiraldez requested a review from a team as a code owner September 20, 2024 19:33
@ggiraldez ggiraldez mentioned this pull request Sep 20, 2024
33 tasks
Copy link
Contributor

@OmarTawfik OmarTawfik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved the rest of the threads. Thanks!

@ggiraldez ggiraldez requested a review from OmarTawfik October 21, 2024 15:14
@OmarTawfik OmarTawfik added this pull request to the merge queue Oct 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@OmarTawfik OmarTawfik added this pull request to the merge queue Oct 22, 2024
Merged via the queue into NomicFoundation:main with commit 685de31 Oct 22, 2024
1 check passed
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Nov 14, 2024
minor improvement to the codegen backend based on earlier discussions in NomicFoundation#1101
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Nov 14, 2024
minor improvement to the codegen backend based on earlier changes in NomicFoundation#1101 and NomicFoundation#1120

- build npm packages in parallel
- rename `BuiltInLabel` to `PredefinedLabel` to disambiguate from the newly introduced built-ins in bindings.
- Fix a bug where breaking versions in built-ins were not considered in other parts of codegen.
- rename `wasm32-wasi` to `wasm32-wasip1`, as it is already deprecated in nightly.
@OmarTawfik OmarTawfik mentioned this pull request Nov 15, 2024
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Nov 15, 2024
minor improvement to the codegen backend based on earlier changes in NomicFoundation#1101 and NomicFoundation#1120

- build npm packages in parallel
- rename `BuiltInLabel` to `PredefinedLabel` to disambiguate from the newly introduced built-ins in bindings.
- Fix a bug where breaking versions in built-ins were not considered in other parts of codegen.
- rename `wasm32-wasi` to `wasm32-wasip1`, as it is already deprecated in nightly.
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Nov 15, 2024
minor improvement to the codegen backend based on earlier changes in NomicFoundation#1101 and NomicFoundation#1120

- build npm packages in parallel
- rename `BuiltInLabel` to `PredefinedLabel` to disambiguate from the newly introduced built-ins in bindings.
- rename `wasm32-wasi` to `wasm32-wasip1`, as it is already deprecated in nightly.
OmarTawfik added a commit to OmarTawfik-forks/slang that referenced this pull request Nov 22, 2024
minor improvement to the codegen backend based on earlier changes in NomicFoundation#1101 and NomicFoundation#1120

- build npm packages in parallel
- rename `BuiltInLabel` to `PredefinedLabel` to disambiguate from the newly introduced built-ins in bindings.
- rename `wasm32-wasi` to `wasm32-wasip1`, as it is already deprecated in nightly.
github-merge-queue bot pushed a commit that referenced this pull request Nov 22, 2024
minor improvements to the codegen backend based on earlier changes in
#1101 and #1120

- build npm packages in parallel
- rename `BuiltInLabel` to `PredefinedLabel` to disambiguate from the
newly introduced built-ins in bindings.
- rename `wasm32-wasi` to `wasm32-wasip1`, as it is already deprecated
in nightly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants