Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPIR-V] Type inference must realize that a <1 x Type> vector type is not a legal vector type in LLT #124560

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VyacheslavLevytskyy
Copy link
Contributor

In this PR we account for possible <1 x LLVM Type> input to ensure that we produce legal vector types during type inference.

We modify an LLVM type to conform with future transformations in IRTranslator, if it's a <1 x Type> vector type, replacing it by the element type, because <1 x Type> vector type is not a legal vector type in LLT and IRTranslator will represent it as the scalar eventually.

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