[PATCH] D157218: [MCA] Fix typo in comments

Mehmet Eymen Ünay via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 6 04:23:45 PDT 2023


Eymay created this revision.
Herald added subscribers: lebedev.ri, gbedwell.
Herald added a reviewer: andreadb.
Herald added a reviewer: lebedev.ri.
Herald added a project: All.
Eymay requested review of this revision.
Herald added subscribers: llvm-commits, StephenFan.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157218

Files:
  llvm/include/llvm/MCA/HardwareUnits/ResourceManager.h
  llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s
  llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s
  llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s


Index: llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s
===================================================================
--- llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s
+++ llvm/test/tools/llvm-mca/X86/Znver3/mulx-same-regs.s
@@ -2,7 +2,7 @@
 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver3 -timeline -iterations=2 < %s | FileCheck %s
 
 # PR51495: If the two destination registers are the same, the destination will
-# contain teh high half of the multiplication result.
+# contain the high half of the multiplication result.
 
 # LLVM-MCA-BEGIN
 mulxl %eax, %eax, %eax
Index: llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s
===================================================================
--- llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s
+++ llvm/test/tools/llvm-mca/X86/SkylakeClient/mulx-same-regs.s
@@ -2,7 +2,7 @@
 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -timeline -iterations=2 < %s | FileCheck %s
 
 # PR51495: If the two destination registers are the same, the destination will
-# contain teh high half of the multiplication result.
+# contain the high half of the multiplication result.
 
 # LLVM-MCA-BEGIN
 mulxl %eax, %eax, %eax
Index: llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s
===================================================================
--- llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s
+++ llvm/test/tools/llvm-mca/X86/Haswell/mulx-same-regs.s
@@ -2,7 +2,7 @@
 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -timeline -iterations=2 < %s | FileCheck %s
 
 # PR51495: If the two destination registers are the same, the destination will
-# contain teh high half of the multiplication result.
+# contain the high half of the multiplication result.
 
 # LLVM-MCA-BEGIN
 mulxl %eax, %eax, %eax
Index: llvm/include/llvm/MCA/HardwareUnits/ResourceManager.h
===================================================================
--- llvm/include/llvm/MCA/HardwareUnits/ResourceManager.h
+++ llvm/include/llvm/MCA/HardwareUnits/ResourceManager.h
@@ -228,7 +228,7 @@
   void setReserved() { Unavailable = true; }
   void clearReserved() { Unavailable = false; }
 
-  /// Returs true if this resource is not reserved, and if there are at least
+  /// Returns true if this resource is not reserved, and if there are at least
   /// `NumUnits` available units.
   bool isReady(unsigned NumUnits = 1) const;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157218.547555.patch
Type: text/x-patch
Size: 2430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230806/371586b4/attachment-0001.bin>


More information about the llvm-commits mailing list