[llvm] [HLSL] Analyze updateCounter usage (PR #135669)

Ashley Coleman via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 10:16:51 PDT 2025


================
@@ -463,7 +463,7 @@ class DXILResourceMap {
   /// ambiguous so multiple creation instructions may be returned. The resulting
   /// ResourceInfo can be used to depuplicate unique handles that
   /// reference the same resource
-  SmallVector<dxil::ResourceInfo> findByUse(const Value *Key) const;
+  SmallVector<dxil::ResourceInfo *> findByUse(const Value *Key);
----------------
V-FEXrt wrote:

We need to mutate `dxil::ResourceInfo` to set the CounterDirection to its final value and this function is needed to figure out _which_ resource to mutate

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


More information about the llvm-commits mailing list