================
@@ -971,6 +971,11 @@ Register createVirtualRegister(
MIRBuilder);
}
+bool isVectorType(SPIRVTypeInst SPVTy) {
+ return SPVTy->getOpcode() == SPIRV::OpTypeVector ||
+ SPVTy->getOpcode() == SPIRV::OpTypeVectorIdEXT;
+}
----------------
jmmartinez wrote:
What if we added this as a member of `SPIRVTypeInst`
https://github.com/llvm/llvm-project/pull/210279
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits