Skip to content

Remove confusing lanes parameter to Handle#9198

Merged
alexreinking merged 2 commits into
mainfrom
alexreinking/generator-handle-bug
Jul 22, 2026
Merged

Remove confusing lanes parameter to Handle#9198
alexreinking merged 2 commits into
mainfrom
alexreinking/generator-handle-bug

Conversation

@alexreinking

@alexreinking alexreinking commented Jul 9, 2026

Copy link
Copy Markdown
Member

The call to Handle(64) confused the number of bit a Handle always has (64) with the number of lanes (the actual argument, 1 by default). Nothing in the compiler used that argument at all, so we remove this foot-gun from the API. If a client needs a vector of Handles, they can use .with_lanes().

@alexreinking
alexreinking requested a review from abadams July 9, 2026 18:26
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@d3b5a85). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9198   +/-   ##
=======================================
  Coverage        ?   70.06%           
=======================================
  Files           ?      255           
  Lines           ?    78936           
  Branches        ?    18881           
=======================================
  Hits            ?    55307           
  Misses          ?    17904           
  Partials        ?     5725           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/Generator.cpp
The call to `Handle(64)` confused the number of bit a Handle always has (64) with the number of lanes (the actual argument, 1 by default).
@alexreinking
alexreinking force-pushed the alexreinking/generator-handle-bug branch from 4a4fb37 to b372dd8 Compare July 21, 2026 06:00
@alexreinking
alexreinking requested a review from shoaibkamil July 21, 2026 06:00
@alexreinking alexreinking changed the title Fix Handle construction in Generator.cpp Remove confusing lanes parameter to Handle Jul 21, 2026
@alexreinking alexreinking added the code_cleanup No functional changes. Reformatting, reorganizing, or refactoring existing code. label Jul 21, 2026
@alexreinking
alexreinking merged commit a3bc832 into main Jul 22, 2026
27 checks passed
@alexreinking
alexreinking deleted the alexreinking/generator-handle-bug branch July 22, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code_cleanup No functional changes. Reformatting, reorganizing, or refactoring existing code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants