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

Christoph Stiller via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 14 16:21:30 PDT 2023


rainerzufalldererste created this revision.
rainerzufalldererste added a reviewer: andreadb.
Herald added a project: All.
rainerzufalldererste requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

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.540570.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230714/f4af681b/attachment.bin>


More information about the llvm-commits mailing list