Skip to content

Fix handling of composites in sycl-post-link #4530

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

Conversation

AlexeySachkov
Copy link
Contributor

@AlexeySachkov AlexeySachkov commented Sep 9, 2021

Enchanced our mini-mangler in SpecConstants pass to avoid generating
call bitcast construct when encountering almost the same functions
For example, if you have a call to %struct.A __spriv_SpecConstantComposite(i32, i32) and you try to insert a call to
%struct.B __spirv_SpecConstantComposite(i32, i32) you should be having
two calls to two differently mangled functions instead of call bitcast
construct, which confuses other toolchain components.
That is achieved by including a mangled return type substring into
the resulting mangling name as _R{ret-type-mangling} suffix.

Enchanced our mini-mangler in SpecConstants pass to avoid generating
`call bitcast` construct when encountering almost the same functions
For example, if you have a call to `%struct.A
__spriv_SpecConstantComposite(i32, i32)` and you try to insert a call to
`%struct.B __spirv_SpecConstantComposite(i32, i32)` you should be having
two calls to two differently mangled functions instead of `call bitcast`
construct, which confuses other toolchain components.
@AlexeySachkov AlexeySachkov merged commit 95c0636 into intel:sycl Sep 11, 2021
@AlexeySachkov AlexeySachkov deleted the private/asachkov/fix-sycl-post-link-arrays-handling branch May 22, 2024 09:50
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