[llvm] [SPIRV] Update the global registry when expanding function pointer (PR #183873)
Steven Perron via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 06:01:26 PST 2026
================
@@ -5341,6 +5341,8 @@ bool SPIRVInstructionSelector::selectGlobalValue(
GR.add(ConstVal, MIB2);
// mapping the function pointer to the used Function
GR.recordFunctionPointer(&MIB2.getInstr()->getOperand(2), GVFun);
+ GR.assignSPIRVTypeToVReg(ResType, FuncVReg, *GR.CurMF);
+ GR.assignSPIRVTypeToVReg(ResType, NewReg, *GR.CurMF);
----------------
s-perron wrote:
If you want to fix that up, someone who knows the function pointer extension better. I don't know the design for how to handle that feature.
https://github.com/llvm/llvm-project/pull/183873
More information about the llvm-commits
mailing list