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

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 17 10:44:06 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: Paul Kirth (ilovepi)

<details>
<summary>Changes</summary>



---
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
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

``````````

</details>


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


More information about the llvm-commits mailing list