Skip to content

Commit

Permalink
[llvm][misexpect][NFC] Fix typos in comments (llvm#82124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovepi authored Feb 17, 2024
1 parent 5023fd0 commit 8074761
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/include/llvm/Transforms/Utils/MisExpect.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,15 +39,15 @@ 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
/// verifyMisexpect() for verification
///
/// \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);

Expand All @@ -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
Expand Down

0 comments on commit 8074761

Please sign in to comment.