Skip to content

Conversation

@V-FEXrt
Copy link
Collaborator

@V-FEXrt V-FEXrt commented Jan 21, 2026

The LinAlg spec requires certain new DXIL opcodes to have 4 type overloads. This NFC change updates the infrastructure to support that

# Extended overload slots, extend as needed:
"$x0": "EXT(0);",
"$x1": "EXT(1);",
"$x2": "EXT(2);",
Copy link
Contributor

Choose a reason for hiding this comment

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

This could add these using use a loop based on the dxil_max_overload_dims in hctdb, if we wanted. Then there's only one variable you have to update to change it, and this stays in sync automatically.

I think this should work:

for n in range(self.db.dxil_max_overload_dims):
    op_type_texts[f"$x{n}"] = f"EXT({n});"

Copy link
Member

Choose a reason for hiding this comment

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

Alternative viewpoint: after spending lots of time trawling through the codebase looking for things that are programmatically generated, I prefer the explicit, greppable version.

I trust @V-FEXrt to make the right call here, one way or the other.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I'd personally lean towards leaving it hard coded. I found it myself by grepping and my search wouldn't have matched this loop

Copy link
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

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

LGTM

# Extended overload slots, extend as needed:
"$x0": "EXT(0);",
"$x1": "EXT(1);",
"$x2": "EXT(2);",
Copy link
Member

Choose a reason for hiding this comment

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

Alternative viewpoint: after spending lots of time trawling through the codebase looking for things that are programmatically generated, I prefer the explicit, greppable version.

I trust @V-FEXrt to make the right call here, one way or the other.

@V-FEXrt V-FEXrt changed the title [SM6.10][NFC] DXIL Ops Allow 3 type overloads [SM6.10][NFC] DXIL Ops Allow 4 type overloads Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

3 participants