[llvm] [HLSL] Analyze update counter usage (PR #130356)

Ashley Coleman via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 25 14:10:19 PDT 2025


================
@@ -574,6 +577,80 @@ class DXILResourceBindingWrapperPass : public ModulePass {
 
 ModulePass *createDXILResourceBindingWrapperPassPass();
 
+enum class ResourceCounterDirection {
+  Increment,
+  Decrement,
+  Unknown,
+  Invalid,
+};
+
+class DXILResourceCounterDirectionMap {
+  std::vector<std::pair<dxil::ResourceBindingInfo, ResourceCounterDirection>>
----------------
V-FEXrt wrote:

Had to be a const pointer instead but done!

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


More information about the llvm-commits mailing list