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

SPV_EXT_relaxed_printf_string_address_space allows format from too many address spaces #2583

Open
LU-JOHN opened this issue May 23, 2024 · 0 comments

Comments

@LU-JOHN
Copy link
Contributor

LU-JOHN commented May 23, 2024

Using --spirv-ext=+SPV_EXT_relaxed_printf_string_address_space allows printf format strings from any address space, but
https://github.com/pjaaskel/SPIRV-Registry/blob/2f4cb5fd64b189f8ab0ddeb770a2b67aade41613/extensions/EXT/SPV_EXT_relaxed_printf_string_address_space.asciidoc
states:

"format must be a pointer(constant, global, local, private, generic) to i8."

In particular calls like:
%4 = call spir_func i32 @_Z18__spirv_ocl_printfPU3AS1c(ptr addrspace(1) %3) #0
are accepted, but addrspace(1) maps to: ATTR_VOLATILE.

@LU-JOHN LU-JOHN changed the title SPV_EXT_relaxed_printf_string_address_space allows format from any address space SPV_EXT_relaxed_printf_string_address_space allows format from too many address spaces May 28, 2024
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

No branches or pull requests

1 participant