[llvm] [SPIRV] Update the global registry when expanding function pointer (PR #183873)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 04:51:16 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);
----------------
jmmartinez wrote:
Very nitpick:
Can we move the assign type of `FuncVReg` just after its `createVirtualRegister`.
https://github.com/llvm/llvm-project/pull/183873
More information about the llvm-commits
mailing list