Skip to content

[llvm][misexpect][NFC] Fix typos in comments #82124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ilovepi
Copy link
Contributor

@ilovepi ilovepi commented Feb 17, 2024

No description provided.

Created using spr 1.3.4
@llvmbot
Copy link
Member

llvmbot commented Feb 17, 2024

@llvm/pr-subscribers-llvm-transforms

Author: Paul Kirth (ilovepi)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/82124.diff

1 Files Affected:

  • (modified) llvm/include/llvm/Transforms/Utils/MisExpect.h (+4-4)
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

@ilovepi ilovepi merged commit 8074761 into main Feb 17, 2024
@ilovepi ilovepi deleted the users/ilovepi/sprllvmmisexpectnfc-fix-typos-in-comments branch February 17, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants