[llvm] [SPIRV] Handle `inttoptr` constant expressions in global initialisers (PR #166494)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 5 05:15:08 PST 2025
================
@@ -348,6 +348,15 @@ static SPIRVType *propagateSPIRVType(MachineInstr *MI, SPIRVGlobalRegistry *GR,
SpvType = GR->getOrCreateSPIRVIntegerType(
MRI.getType(Reg).getScalarSizeInBits(), MIB);
break;
+ case TargetOpcode::G_INTTOPTR:
+ // With opaque pointers it doesn't appear as if we can convert to
----------------
Keenuts wrote:
handling of `asssign.ptr.type` is done after? Or shall those be used to determine the pointer type of this cast?
https://github.com/llvm/llvm-project/pull/166494
More information about the llvm-commits
mailing list