[llvm] [SPIRV][HLSL] Handle arrays of resources (PR #111564)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 05:32:07 PDT 2024


================
@@ -726,8 +736,18 @@ static std::string buildSpirvTypeName(const SPIRVType *Type,
     }
     return TypeName;
   }
+  case SPIRV::OpTypeArray: {
+    Register ElementTypeReg = Type->getOperand(1).getReg();
+    auto *ElementType = MIRBuilder.getMRI()->getUniqueVRegDef(ElementTypeReg);
+    uint32_t ArraySize = 32; // Type->getOperand(2).getCImm()->getZExtValue();
----------------
Keenuts wrote:

Is this expected?

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


More information about the llvm-commits mailing list