================
@@ -971,6 +971,11 @@ Register createVirtualRegister(
       MIRBuilder);
 }
 
+bool isVectorType(SPIRVTypeInst SPVTy) {
+  return SPVTy->getOpcode() == SPIRV::OpTypeVector ||
+      SPVTy->getOpcode() == SPIRV::OpTypeVectorIdEXT;
+}
----------------
AlexVlx wrote:

Probably tidier, unless there are objections to growing that interface.

https://github.com/llvm/llvm-project/pull/210279
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to