Skip to content

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 dneto0 requested a review from alan-baker October 15, 2024 15:52
@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