Skip to content

[LLVM->SPV-IR] Add const to pointer arg of prefetch, change num_elements arg type to unsigned#3188

Merged
svenvh merged 2 commits intoKhronosGroup:mainfrom
wenju-he:SPV-IR-prefetch-second-arg-unsigned
Jun 2, 2025
Merged

[LLVM->SPV-IR] Add const to pointer arg of prefetch, change num_elements arg type to unsigned#3188
svenvh merged 2 commits intoKhronosGroup:mainfrom
wenju-he:SPV-IR-prefetch-second-arg-unsigned

Conversation

@wenju-he
Copy link
Contributor

@wenju-he wenju-he commented May 28, 2025

Per SPIR-V OpenCL.ExtendedInstructionSet spec, the num_elements arg must be size_t. So this PR changes its type to unsigned in SPV-IR.
Adding const to pointer arg aligns with OpenCL spec and allows const pointer input.

wenju-he added 2 commits May 28, 2025 00:27
…unsigned

Per SPIR-V OpenCL.ExtendedInstructionSet spec, the num_elements arg must
be size_t. So this PR changes its type to unsigned in SPV-IR.
@wenju-he wenju-he changed the title [LLVM->SPV-IR] Change num_elements arg of prefetch from signed to to unsigned [LLVM->SPV-IR] Add const to pointer arg of prefetch, change num_elements arg type to unsigned May 28, 2025
@wenju-he
Copy link
Contributor Author

wenju-he commented Jun 2, 2025

@svenvh @MrSidims please help to merge, thanks.

@svenvh svenvh merged commit 96f5ade into KhronosGroup:main Jun 2, 2025
9 checks passed
@wenju-he wenju-he deleted the SPV-IR-prefetch-second-arg-unsigned branch June 2, 2025 09:45
vmaksimo pushed a commit that referenced this pull request Feb 18, 2026
…change num_elements arg type to unsigned (#3188)

Per SPIR-V OpenCL.ExtendedInstructionSet spec, the num_elements arg must
be size_t. So this PR changes its type to unsigned in SPV-IR.
Adding const to pointer arg aligns with OpenCL spec and allows const
pointer input.
vmaksimo added a commit to vmaksimo/SPIRV-LLVM-Translator that referenced this pull request Feb 18, 2026
… change num_elements arg type to unsigned (KhronosGroup#3188)

Per SPIR-V OpenCL.ExtendedInstructionSet spec, the num_elements arg must
be size_t. So this PR changes its type to unsigned in SPV-IR.
Adding const to pointer arg aligns with OpenCL spec and allows const
pointer input.
vmaksimo added a commit to vmaksimo/SPIRV-LLVM-Translator that referenced this pull request Feb 18, 2026
… change num_elements arg type to unsigned (KhronosGroup#3188)

Per SPIR-V OpenCL.ExtendedInstructionSet spec, the num_elements arg must
be size_t. So this PR changes its type to unsigned in SPV-IR.
Adding const to pointer arg aligns with OpenCL spec and allows const
pointer input.
vmaksimo added a commit to vmaksimo/SPIRV-LLVM-Translator that referenced this pull request Feb 18, 2026
… change num_elements arg type to unsigned (KhronosGroup#3188)

Per SPIR-V OpenCL.ExtendedInstructionSet spec, the num_elements arg must
be size_t. So this PR changes its type to unsigned in SPV-IR.
Adding const to pointer arg aligns with OpenCL spec and allows const
pointer input.
vmaksimo added a commit that referenced this pull request Mar 17, 2026
… change num_elements arg type to unsigned (#3188)

Per SPIR-V OpenCL.ExtendedInstructionSet spec, the num_elements arg must
be size_t. So this PR changes its type to unsigned in SPV-IR.
Adding const to pointer arg aligns with OpenCL spec and allows const
pointer input.
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