[llvm] [llvm][misexpect][NFC] Fix typos in comments (PR #82124)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 17 10:43:36 PST 2024


https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/82124

None

>From ffde0c93b43e7a29ea89d3b2a7328e670e4ad595 Mon Sep 17 00:00:00 2001
From: Paul Kirth <pk1574 at gmail.com>
Date: Sat, 17 Feb 2024 10:43:27 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.4
---
 llvm/include/llvm/Transforms/Utils/MisExpect.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/llvm/include/llvm/Transforms/Utils/MisExpect.h b/llvm/include/llvm/Transforms/Utils/MisExpect.h
index be6deb1957f13f..e9fba47c97a4db 100644
--- a/llvm/include/llvm/Transforms/Utils/MisExpect.h
+++ b/llvm/include/llvm/Transforms/Utils/MisExpect.h
@@ -27,7 +27,7 @@ namespace misexpect {
 
 /// checkBackendInstrumentation - compares PGO counters to the thresholds used
 /// for llvm.expect and warns if the PGO counters are outside of the expected
-/// range. It extracts the expected weights from the MD_prof weights attatched
+/// range. It extracts the expected weights from the MD_prof weights attached
 /// to the instruction, which are assumed to come from lowered llvm.expect
 /// intrinsics. The RealWeights parameter and the extracted expected weights are
 /// then passed to verifyMisexpect() for verification
@@ -39,7 +39,7 @@ void checkBackendInstrumentation(Instruction &I,
 
 /// checkFrontendInstrumentation - compares PGO counters to the thresholds used
 /// for llvm.expect and warns if the PGO counters are outside of the expected
-/// range. It extracts the expected weights from the MD_prof weights attatched
+/// range. It extracts the expected weights from the MD_prof weights attached
 /// to the instruction, which are assumed to come from profiling data
 /// attached by the frontend prior to llvm.expect intrinsic lowering. The
 /// ExpectedWeights parameter and the extracted real weights are then passed to
@@ -47,7 +47,7 @@ void checkBackendInstrumentation(Instruction &I,
 ///
 /// \param I The Instruction being checked
 /// \param ExpectedWeights A vector of the expected weights for each target
-/// block, this determines the threshold values used when emiting diagnostics
+/// block, this determines the threshold values used when emitting diagnostics
 void checkFrontendInstrumentation(Instruction &I,
                                   const ArrayRef<uint32_t> ExpectedWeights);
 
@@ -63,7 +63,7 @@ void verifyMisExpect(Instruction &I, ArrayRef<uint32_t> RealWeights,
 
 /// checkExpectAnnotations - compares PGO counters to the thresholds used
 /// for llvm.expect and warns if the PGO counters are outside of the expected
-/// range. It extracts the expected weights from the MD_prof weights attatched
+/// range. It extracts the expected weights from the MD_prof weights attached
 /// to the instruction, which are assumed to come from lowered llvm.expect
 /// intrinsics. The RealWeights parameter and the extracted expected weights are
 /// then passed to verifyMisexpect() for verification. It is a thin wrapper



More information about the llvm-commits mailing list