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

Ensure 'printf' is translated to a printf extended insn #2581

Merged
merged 5 commits into from
May 29, 2024

Conversation

LU-JOHN
Copy link
Contributor

@LU-JOHN LU-JOHN commented May 21, 2024

Calls to printf can generated by a user call to __builtin_printf. Represent this in SPIRV with a printf extended insn
instead of a SPIRV call to "printf". A SPIRV call to a variadic function will fail in spirv-val.

@LU-JOHN
Copy link
Contributor Author

LU-JOHN commented May 21, 2024

spirv-val testing in this PR requires changes in KhronosGroup/SPIRV-Tools#5677

@LU-JOHN LU-JOHN requested a review from svenvh May 28, 2024 20:31
@MrSidims MrSidims merged commit d4098cd into KhronosGroup:main May 29, 2024
9 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.

3 participants