[llvm] [SPIRV] Implement LLVM IR and backend for typed buffer counters (PR #161425)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 07:33:55 PDT 2025


================
@@ -3441,6 +3447,10 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
   case Intrinsic::spv_resource_handlefrombinding: {
     return selectHandleFromBinding(ResVReg, ResType, I);
   }
+  case Intrinsic::spv_resource_counterhandlefrombinding:
----------------
s-perron wrote:

You are correct, it should never appear here because it gets replaced. The default case will issue an error because of an unhandled intrinsic. That error will say it is unimplemented. I can add a more specific assert saying that is should have been replaced.

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


More information about the llvm-commits mailing list