[PATCH] D155347: Documenting behaviour of ResourceRef (HWInstructionDispatchedEvent)

Andrea Di Biagio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 06:10:50 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1768c4597e70: [MCA] Document behaviour of ResourceRef (authored by rainerzufalldererste, committed by andreadb).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155347/new/

https://reviews.llvm.org/D155347

Files:
  llvm/include/llvm/MCA/HWEventListener.h


Index: llvm/include/llvm/MCA/HWEventListener.h
===================================================================
--- llvm/include/llvm/MCA/HWEventListener.h
+++ llvm/include/llvm/MCA/HWEventListener.h
@@ -59,7 +59,10 @@
   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 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155347.541493.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230718/ae4d273c/attachment.bin>


More information about the llvm-commits mailing list