Skip to content

Commit

Permalink
[MCA] Document behaviour of ResourceRef
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D155347
  • Loading branch information
rainerzufalldererste authored and adibiagio committed Jul 18, 2023
1 parent 83ba148 commit 1768c45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/include/llvm/MCA/HWEventListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ class HWInstructionEvent {
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 {
Expand Down

0 comments on commit 1768c45

Please sign in to comment.