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

rename Intrinsic::getDeclaration to Intrinsic::getOrInsertDeclaration #1406

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Oct 15, 2024

Update LLVM

- Rename Intrinsic::getDeclaration to Intrinsic::getOrInsertDeclaration
- Update one test to avoid disabling int8

Bug: https://crbug.com/373696543

@dneto0
Copy link
Collaborator Author

dneto0 commented Oct 15, 2024

This is needed after LLVM change llvm/llvm-project#111752

- Rename Intrinsic::getDeclaration to Intrinsic::getOrInsertDeclaration
- Update one test to avoid disabling int8

Bug: crbug.com/373696543
@dneto0 dneto0 marked this pull request as ready for review October 16, 2024 20:40
@@ -1,4 +1,4 @@
// RUN: clspv %target %s -o %t.spv -module-constants-in-storage-buffer -int8=0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@rjodinchr observed that Clang is inserting explicit padding members.

In this case we now have an i8 first member, a [3 x i8] inserted second member. Everything breaks when artificially trying to remap i8 to u32. Use the default, which is actually support i8.

@rjodinchr rjodinchr merged commit 419bc4b into google:main Oct 17, 2024
10 of 12 checks passed
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