Skip to content

Commit 1768c45

Browse files
rainerzufallderersteadibiagio
authored andcommitted
[MCA] Document behaviour of ResourceRef
Differential Revision: https://reviews.llvm.org/D155347
1 parent 83ba148 commit 1768c45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/MCA/HWEventListener.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ class HWInstructionEvent {
5959
const InstRef &IR;
6060
};
6161

62+
// ResourceRef::first is the index of the associated Resource.
63+
// ResourceRef::second is a bitmask of the referenced sub-unit of the resource.
6264
using ResourceRef = std::pair<uint64_t, uint64_t>;
65+
6366
using ResourceUse = std::pair<ResourceRef, ResourceCycles>;
6467

6568
class HWInstructionIssuedEvent : public HWInstructionEvent {

0 commit comments

Comments
 (0)