Skip to content

DSLX: re-enable the grouped use constant test under TIv2 - #5523

Open
cdleary wants to merge 1 commit into
google:mainfrom
xlsynth:cdleary/2026-11-21-dslx-grouped-use-constants
Open

cdleary wants to merge 1 commit into
google:mainfrom
xlsynth:cdleary/2026-11-21-dslx-grouped-use-constants

Conversation

@cdleary

@cdleary cdleary commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

TIv2 already resolves both names in use mod_imported_multi_const::{MOL, ONE}. When converting MOL + ONE to IR, the constant dependency collector looks up each use leaf in the root TypeInfo. Record the defining module and its type information there when TIv2 resolves the leaf.

Re-enable mod_use_multi and compare the DSLX and IR interpreter results. With just the test enabled on main, IR conversion fails to find the import for MOL. With this change, both interpreters return u32:43.

The restored language test, its format check, the TIv2 declaration tests, and the IR converter tests passed. All 2,234 selected targets in the optimized XLS test sweep passed.

Part of #2876.

Record each resolved use leaf in the root TypeInfo so IR conversion can find its defining module when collecting constant dependencies. Restore the grouped-constant language test under TIv2 and compare its DSLX and IR interpreter results.
@cdleary
cdleary marked this pull request as ready for review November 21, 2026 23:57
cdleary added a commit to xlsynth/xlsynth that referenced this pull request Nov 23, 2026
…der TIv2

Record each resolved use leaf in the root TypeInfo so IR conversion can find its defining module when collecting constant dependencies. Restore the grouped-constant language test under TIv2 and compare its DSLX and IR interpreter results.

Upstream-head: 4a3f082
cdleary added a commit to xlsynth/xlsynth that referenced this pull request Nov 24, 2026
…der TIv2

Record each resolved use leaf in the root TypeInfo so IR conversion can find its defining module when collecting constant dependencies. Restore the grouped-constant language test under TIv2 and compare its DSLX and IR interpreter results.

Upstream-head: 4a3f082
cdleary added a commit to xlsynth/xlsynth that referenced this pull request Nov 24, 2026
…der TIv2

Record each resolved use leaf in the root TypeInfo so IR conversion can find its defining module when collecting constant dependencies. Restore the grouped-constant language test under TIv2 and compare its DSLX and IR interpreter results.

Upstream-head: 4a3f082
cdleary added a commit to xlsynth/xlsynth that referenced this pull request Nov 24, 2026
…der TIv2

Record each resolved use leaf in the root TypeInfo so IR conversion can find its defining module when collecting constant dependencies. Restore the grouped-constant language test under TIv2 and compare its DSLX and IR interpreter results.

Upstream-head: 4a3f082

This branch has not been deployed

No deployments
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.

1 participant