[llvm] [DirectX] introducing lowering for `bufferUpdateCounter` (PR #115041)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 10:55:18 PST 2024


================
@@ -463,6 +463,28 @@ class OpLowerer {
     });
   }
 
+  [[nodiscard]] bool lowerUpdateCounter(Function &F) {
----------------
bogner wrote:

Most of the intrinsics that use a handle are related to loads, stores, and sampling - bufferUpdateCounter is a bit special in its simplicity. As you might see from the handling of typed buffer loads and stores, the translation isn't as straightforward there. @joaosaffran asked me about generalizing this now, but I think it's probably best to just do this one directly for now and generalize when we have more related logic in to make sure we're not generalizing in a way we'll need to undo later.

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


More information about the llvm-commits mailing list