Skip to content

Commit 8074761

Browse files
authored
[llvm][misexpect][NFC] Fix typos in comments (#82124)
1 parent 5023fd0 commit 8074761

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/Transforms/Utils/MisExpect.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace misexpect {
2727

2828
/// checkBackendInstrumentation - compares PGO counters to the thresholds used
2929
/// for llvm.expect and warns if the PGO counters are outside of the expected
30-
/// range. It extracts the expected weights from the MD_prof weights attatched
30+
/// range. It extracts the expected weights from the MD_prof weights attached
3131
/// to the instruction, which are assumed to come from lowered llvm.expect
3232
/// intrinsics. The RealWeights parameter and the extracted expected weights are
3333
/// then passed to verifyMisexpect() for verification
@@ -39,15 +39,15 @@ void checkBackendInstrumentation(Instruction &I,
3939

4040
/// checkFrontendInstrumentation - compares PGO counters to the thresholds used
4141
/// for llvm.expect and warns if the PGO counters are outside of the expected
42-
/// range. It extracts the expected weights from the MD_prof weights attatched
42+
/// range. It extracts the expected weights from the MD_prof weights attached
4343
/// to the instruction, which are assumed to come from profiling data
4444
/// attached by the frontend prior to llvm.expect intrinsic lowering. The
4545
/// ExpectedWeights parameter and the extracted real weights are then passed to
4646
/// verifyMisexpect() for verification
4747
///
4848
/// \param I The Instruction being checked
4949
/// \param ExpectedWeights A vector of the expected weights for each target
50-
/// block, this determines the threshold values used when emiting diagnostics
50+
/// block, this determines the threshold values used when emitting diagnostics
5151
void checkFrontendInstrumentation(Instruction &I,
5252
const ArrayRef<uint32_t> ExpectedWeights);
5353

@@ -63,7 +63,7 @@ void verifyMisExpect(Instruction &I, ArrayRef<uint32_t> RealWeights,
6363

6464
/// checkExpectAnnotations - compares PGO counters to the thresholds used
6565
/// for llvm.expect and warns if the PGO counters are outside of the expected
66-
/// range. It extracts the expected weights from the MD_prof weights attatched
66+
/// range. It extracts the expected weights from the MD_prof weights attached
6767
/// to the instruction, which are assumed to come from lowered llvm.expect
6868
/// intrinsics. The RealWeights parameter and the extracted expected weights are
6969
/// then passed to verifyMisexpect() for verification. It is a thin wrapper

0 commit comments

Comments
 (0)