[llvm] [HLSL] Move Resource Instance Properties from TypeInfo (PR #135259)

Ashley Coleman via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 11 11:54:10 PDT 2025


================
@@ -353,13 +340,22 @@ class ResourceInfo {
   GlobalVariable *Symbol = nullptr;
 
 public:
+  bool GloballyCoherent = false;
+  ResourceCounterDirection CounterDirection = ResourceCounterDirection::Unknown;
----------------
V-FEXrt wrote:

Is there a preference for one vs the other? The members need to be read and written externally so I can make them private and add getters or just delete the setters.

FWIW the previous location for these members (I'm just moving them) had public+setters though I don't think the setters were used 

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


More information about the llvm-commits mailing list