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

Impl. const. eval. for "first bit" numeric built-ins #5101

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Jan 19, 2024

Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories

Soft dependency on #5098.

Description
Describe what problem this is solving, and how it's solved.

I think it's self-evident, but I'm happy to write something longer if it's not.

Testing
Explain how this change is tested.

Some testing is evident from changes to Naga's snapshot tests, but there's not full coverage of these. I would accept a request to add tests before merging.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from 9e8436c to 715d9ca Compare January 19, 2024 21:06
@ErichDonGubler ErichDonGubler added area: correctness We're behaving incorrectly area: naga processing Passes over IR in the middle lang: WGSL WebGPU Shading Language and removed lang: WGSL WebGPU Shading Language labels Jan 19, 2024
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from 715d9ca to ff4a61d Compare January 26, 2024 18:22
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch 3 times, most recently from 1385753 to fd9c5d2 Compare February 9, 2024 19:44
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch 2 times, most recently from 00765aa to 2b36f65 Compare February 26, 2024 17:36
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from 2b36f65 to 9e327e1 Compare March 7, 2024 03:47
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch 2 times, most recently from 3f43c9d to d5eb8f9 Compare April 2, 2024 01:05
@cwfitzgerald

This comment was marked as outdated.

@ErichDonGubler

This comment was marked as outdated.

@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from d5eb8f9 to 14ca774 Compare April 18, 2024 14:31
@ErichDonGubler ErichDonGubler self-assigned this Apr 18, 2024
@ErichDonGubler

This comment was marked as outdated.

@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from 14ca774 to 1621b9b Compare May 8, 2024 21:52
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from 1621b9b to 3e23247 Compare May 30, 2024 21:02
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch 4 times, most recently from c57281f to 31ea912 Compare July 23, 2024 16:42
@ErichDonGubler ErichDonGubler marked this pull request as ready for review July 23, 2024 16:42
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner July 23, 2024 16:42
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from 99fe74d to 1a2118f Compare July 23, 2024 16:46
@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch from 1a2118f to f93f693 Compare July 23, 2024 16:52
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

Nice!

@ErichDonGubler ErichDonGubler force-pushed the builtins-const-eval-first_bits branch 2 times, most recently from e3293f8 to f73e616 Compare July 24, 2024 12:36
@ErichDonGubler ErichDonGubler enabled auto-merge (rebase) July 24, 2024 12:52
@teoxoy teoxoy force-pushed the builtins-const-eval-first_bits branch from f73e616 to a1e6c86 Compare July 24, 2024 12:56
@teoxoy
Copy link
Member

teoxoy commented Jul 24, 2024

Just rebased this via GH's UI since it was running into timeouts that got fixed in #6030.

@ErichDonGubler ErichDonGubler merged commit fa93676 into gfx-rs:trunk Jul 24, 2024
25 checks passed
@ErichDonGubler ErichDonGubler deleted the builtins-const-eval-first_bits branch July 24, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: correctness We're behaving incorrectly area: naga processing Passes over IR in the middle
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants