Skip to content

Conversation

@rwy7
Copy link
Contributor

@rwy7 rwy7 commented Oct 20, 2025

The domain define op needs to verify that the destination has the same domain-type as the source. To do this, it needs to be able to read the domain type off of either operand. There is no generic way to do this yet so we have to support specific ops on a case-by-case basis. This PR adds support for sources and destinations defined by the instance-choice op.

At some point in the future we'll likely standardize an interface for reading domain information for results and arguments, but I'll save that for a later PR.

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

LGTM

@rwy7 rwy7 merged commit 6d8b735 into llvm:main Oct 20, 2025
7 checks passed
@rwy7 rwy7 deleted the get-domain-type-for-instance-choice branch October 20, 2025 17:18
@dtzSiFive
Copy link
Contributor

Nice!

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.

3 participants