-
Notifications
You must be signed in to change notification settings - Fork 808
[Doc] Add SPV_INTEL_non_constant_addrspace_printf spec #5227
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
|
@AlexeySotkin @bashbaug @mbelicki I've marked this PR as a draft, but it is ready for review. The only thing - there is no opcode for the new capability yet, so we shouldn't merge it even if there are no concerns. |
|
@AlexeySotkin @bashbaug @mbelicki please take a look |
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
|
If I understand correctly the only change to the original extension is: i.e. allowing the format pointer to be in other than constant address space. This is aligned with what was previously discussed and supported by current implementation, but in this case I think that we also need to specify that the format string must be a string literal, known at compile time. Otherwise this extension allows any i8 pointer to be a valid printf format argument. |
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Show resolved
Hide resolved
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
mbelicki
left a comment
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.
Looks good to me!
bader
left a comment
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, just a few minor comments which can be ignored.
Please, let me know if you are willing to address them or we need to get approval from Ben to merge it.
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/SPIRV/SPV_INTEL_non_constant_addrspace_printf.asciidoc
Outdated
Show resolved
Hide resolved
bashbaug
left a comment
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, I've verified that the token assignments are correct.
As I've mentioned offline I'm not thrilled with the extension and capability name, but I can't think of an name that's obviously better and I can live with the current names.
906a4cd
Spec: intel/llvm#5227 (cherry picked from commit 6e70d1c)
Spec: intel/llvm#5227 (cherry picked from commit 6e70d1c)
No description provided.