[llvm] [HLSL] Add support to lookup a ResourceBindingInfo from its use (PR #126556)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Feb 18 10:59:28 PST 2025
    
    
  
================
@@ -770,6 +770,50 @@ void DXILBindingMap::print(raw_ostream &OS, DXILResourceTypeMap &DRTM,
   }
 }
 
+SmallVector<dxil::ResourceBindingInfo>
+DXILBindingMap::findByUse(const Value *Key) const {
----------------
joaosaffran wrote:
`findByUse` makes me think this is used to find all values using the `Key` value. But this seems to be looking only for calls instructions, using such value. Shouldn't we call it `findByFunctionUse` or something more explicitly? 
https://github.com/llvm/llvm-project/pull/126556
    
    
More information about the llvm-commits
mailing list