[llvm] [NFC][DirectX] Rename ResourceInfo::RecordID to BindingID (PR #216376)

Helena Kotas via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 17:56:49 PDT 2026


================
@@ -412,13 +412,13 @@ class ResourceInfo {
   ResourceCounterDirection CounterDirection = ResourceCounterDirection::Unknown;
   bool HasAtomic64Use = false;
 
-  ResourceInfo(uint32_t RecordID, uint32_t Space, uint32_t LowerBound,
-               uint32_t Size, TargetExtType *HandleTy, StringRef Name = "",
+  ResourceInfo(uint32_t Space, uint32_t LowerBound, uint32_t Size,
+               TargetExtType *HandleTy, StringRef Name = "",
                GlobalVariable *Symbol = nullptr)
-      : Binding{RecordID, Space, LowerBound, Size}, HandleTy(HandleTy),
-        Name(Name), Symbol(Symbol) {}
+      : Binding{ResourceBinding{0, Space, LowerBound, Size}},
----------------
hekota wrote:

The `Binding` will become optional soon as I will be adding heap resources (`std::opt<Resourcebinding>`), and in that case the constructor will need the the explicit `ResourceBinding` again, but it does not need it now. 

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


More information about the llvm-commits mailing list