[clang] [llvm] [SPIR-V] Implement SPV_KHR_untyped_pointers extension (PR #201233)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 01:30:50 PDT 2026


================
@@ -370,7 +383,8 @@ static SPIRVTypeInst propagateSPIRVType(MachineInstr *MI,
       if (SpvType) {
         // check if the address space needs correction
         LLT RegType = MRI.getType(Reg);
-        if (SpvType->getOpcode() == SPIRV::OpTypePointer &&
+        if ((SpvType->getOpcode() == SPIRV::OpTypePointer ||
+             SpvType->getOpcode() == SPIRV::OpTypeUntypedPointerKHR) &&
----------------
aobolensk wrote:

```suggestion
        if (SpvType.isPointer() &&
```

https://github.com/llvm/llvm-project/pull/201233


More information about the llvm-commits mailing list