[llvm] [SPIRV] Implement LLVM IR and backend for typed buffer counters (PR #161425)
Marcos Maronas via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 06:31:57 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:
----------------
maarquitos14 wrote:
I'll reply myself so that you can confirm if my understanding is correct: we don't need `spv_resource_counterhandlefromimplicitbinding` here because it should never reach this point, as it should be replaced by `SPIRVLegalizeImplicitBinding::replaceCounterHandleCall`. Does it make sense to add it here with an assert to make sure it's never found?
https://github.com/llvm/llvm-project/pull/161425
More information about the llvm-commits
mailing list