Skip to content

[SYCL][NATIVECPU] Fix TargetInfo initialization (DataLayoutString) #19711

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

Merged
merged 3 commits into from
Aug 5, 2025

Conversation

uwedolinsky
Copy link
Contributor

Some clang targets (for example for Arm) may not initialize DataLayoutString in their TargetInfo constructor, which meant calls getDataLayoutString right after the constructor cause an assert.

This PR defers the initialization of the NativeCPU TargetInfo to after the call of handleTargetFeatures of the host cpu Target info, which on Arm initializes DataLayoutString, but may also catch more initializations.

@uwedolinsky
Copy link
Contributor Author

@intel/llvm-gatekeepers This looks ready to merge. Thank you!

@sommerlukas sommerlukas merged commit cffc9ec into intel:sycl Aug 5, 2025
40 of 41 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.

4 participants