[MCA] Document behaviour of ResourceRef
authorChristoph Stiller <c.stiller@live.de>
Tue, 18 Jul 2023 12:36:37 +0000 (13:36 +0100)
committerAndrea Di Biagio <andrea.dibiagio@sony.com>
Tue, 18 Jul 2023 13:09:21 +0000 (14:09 +0100)
Differential Revision: https://reviews.llvm.org/D155347

llvm/include/llvm/MCA/HWEventListener.h

index 4a7d0df..a24b906 100644 (file)
@@ -59,7 +59,10 @@ public:
   const InstRef &IR;
 };
 
+// ResourceRef::first is the index of the associated Resource.
+// ResourceRef::second is a bitmask of the referenced sub-unit of the resource.
 using ResourceRef = std::pair<uint64_t, uint64_t>;
+
 using ResourceUse = std::pair<ResourceRef, ResourceCycles>;
 
 class HWInstructionIssuedEvent : public HWInstructionEvent {