-
Notifications
You must be signed in to change notification settings - Fork 750
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] Reland entry point patches #14450
base: sycl
Are you sure you want to change the base?
Conversation
SPIR-V spec states: "It is invalid for any function to be targeted by both an OpEntryPoint instruction and an OpFunctionCall instruction." In order to satisfy SPIR-V that entrypoints and functions must be different, this introduces an entrypoint wrapper around functions at the LLVM IR level, then fixes up a few things like naming at the SPIRV translation. Original commit: KhronosGroup/SPIRV-LLVM-Translator@85815e7
This reverts commit 4e6a414.
clang lit failure seems to be not related to the change (at least it should not be). |
Do we know why these changes were not pulled down into intel/llvm's llvm-spirv to begin with? Did something change so that it is ok now? |
@LU-JOHN yes, we waited for GPU (Windows?) driver to be updated. |
@vmaksimo Are there any differences from Khronos that we should focus our review on? |
@LU-JOHN there are code differences from the initial commit changes (first two commits). But after this PR there will be no differences between Khronos code base and intel/llvm (regarding the mentioned in the description changes). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @intel/llvm-gatekeepers! Could you please merge? |
@vmaksimo - The failure does indeed seem related and I was able to reproduce it locally. Changing all cases of |
llvm-spirv/test/image.ll
Outdated
@@ -1,5 +1,3 @@ | |||
; XFAIL: * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, the test passes in the upstream translator repo, if we are going to disable any of tests here, we need to submit a tracker to investigate the failures and re-enable those tests.
Re-trigger CI |
|
Restores:
transFunctionAttrs()
part of KhronosGroup/SPIRV-LLVM-Translator@15e0aa9And reverts 4e6a414, 6d84f3a, 6c524eb.
Addresses p.2 and p.3 of #7592