[llvm] [SPIR-V] Fix validation errors for function pointers with CodeSectionINTEL storage class (PR #192973)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 07:57:29 PDT 2026
================
@@ -2581,13 +2581,15 @@ bool SPIRVInstructionSelector::selectAddrSpaceCast(Register ResVReg,
// are expressed by OpSpecConstantOp with an Opcode.
// TODO: maybe insert a check whether the Kernel capability was declared and
// so PtrCastToGeneric/GenericCastToPtr are available.
- unsigned SpecOpcode =
----------------
sarnex wrote:
No problem, can you show me the failing example? I think it's more likely `spirv-val` is wrong and this is an occurance of spirv-val bug https://github.com/KhronosGroup/SPIRV-Tools/issues/6700, in which case IMO we shouldn't do any change in LLVM
https://github.com/llvm/llvm-project/pull/192973
More information about the llvm-commits
mailing list