Skip to content

[triton][tlx] Map ttg.memdesc_index to tlx.local_view in TTGIR-to-TLX pass#1087

Open
jdonald wants to merge 1 commit intomainfrom
export-D96554961
Open

[triton][tlx] Map ttg.memdesc_index to tlx.local_view in TTGIR-to-TLX pass#1087
jdonald wants to merge 1 commit intomainfrom
export-D96554961

Conversation

@jdonald
Copy link
Copy Markdown

@jdonald jdonald commented Mar 14, 2026

Summary:
The PrintTTGIRToTLX debug pass mapped ttg.memdesc_index to
tlx.memdesc_index, but the correct TLX Python API name is
tlx.local_view. This change aligns the emitted pseudocode with the
actual TLX DSL, making the output closer to compilable TLX Python.

This is the rebased remainder of D94700558 after PR #983 and PR #1005
landed upstream. Those PRs already covered 6 of 7 changes (math op
mappings, unsigned div/rem, NaN-propagating min/max, skipping
gpu.barrier/convert_layout, convert layout transparent substitution via
getValueName, TMA descriptor, constant deduplication--obsolete as #983
inlines constants at use sites).

Rebased and authored with Claude.

Note that while the original intent of D94700558 was to ensure that generated
TLX from the TTGIR-to-TLX pass could compile, it did not achieve this yet. This
PR is to just get us up to speed with the earlier WIP, and then we'll post additional
fixes on top of this towards compilable TLX Python.

Differential Revision: D96554961

… pass

Summary:
The PrintTTGIRToTLX debug pass mapped `ttg.memdesc_index` to
`tlx.memdesc_index`, but the correct TLX Python API name is
`tlx.local_view`. This change aligns the emitted pseudocode with the
actual TLX DSL, making the output closer to compilable TLX Python.

This is the rebased remainder of D94700558 after [PR #983](#983) and [PR #1005](#1005)
landed upstream. Those PRs already covered 6 of 7 changes (math op
mappings, unsigned div/rem, NaN-propagating min/max, skipping
gpu.barrier/convert_layout, convert layout transparent substitution via
getValueName, TMA descriptor, constant deduplication--obsolete as #983
inlines constants at use sites).

Rebased and authored with Claude.

Note that while the original intent of D94700558 was to ensure that generated
TLX from the TTGIR-to-TLX pass could compile, it did not achieve this yet. This
PR is to just get us up to speed with the earlier WIP, and then we'll post additional
fixes on top of this towards compilable TLX Python.

Differential Revision: D96554961
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 14, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Mar 14, 2026

@jdonald has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96554961.

@manman-ren
Copy link
Copy Markdown
Contributor

Thanks! Can you rebase this to autows/helion_release and upload the PR against autows/helion_release? We have been landing changes in autows/helion_release.

Copy link
Copy Markdown
Contributor

@tissue3 tissue3 left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants