Skip to content

Conversation

@ramiro050
Copy link
Collaborator

In order to verify if a given IR satisfies the backend contract, the verifier needs to know if decompositions took place, and if so, which ops were decomposed and which were not.

This commit adds two arguments to verifyBackendContractPass to specify if decompositions took place and which ops to consider backend legal, similar to the arguments of LowerToBackendContractPass.

In order to verify if a given IR satisfies the backend contract, the
verifier needs to know if decompositions took place, and if so, which
ops were decomposed and which were not.

This commit adds two arguments to `verifyBackendContractPass` to
specify if decompositions took place and which ops to consider backend
legal, similar to the arguments of `LowerToBackendContractPass`.
@ramiro050 ramiro050 requested a review from silvasean December 15, 2022 01:24
@ramiro050 ramiro050 marked this pull request as ready for review December 15, 2022 01:24
Copy link
Contributor

@silvasean silvasean left a comment

Choose a reason for hiding this comment

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

Thanks!

nit: Remove WIP from final commit title.

@ramiro050 ramiro050 changed the title [WIP] Pass op legality info to verifyBackendContractPass Pass op legality info to verifyBackendContractPass Dec 15, 2022
@ramiro050 ramiro050 merged commit 60db793 into llvm:main Dec 15, 2022
@ramiro050 ramiro050 deleted the verify-backend branch December 15, 2022 16:32
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.

2 participants