[llvm] 27105e2 - MisExpect.h - fix Wdocumentation warnings. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 07:06:38 PDT 2022


Author: Simon Pilgrim
Date: 2022-08-01T15:06:30+01:00
New Revision: 27105e2f309aced42c18bcb7c8b08268fccccd0a

URL: https://github.com/llvm/llvm-project/commit/27105e2f309aced42c18bcb7c8b08268fccccd0a
DIFF: https://github.com/llvm/llvm-project/commit/27105e2f309aced42c18bcb7c8b08268fccccd0a.diff

LOG: MisExpect.h - fix Wdocumentation warnings. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Utils/MisExpect.h
    llvm/lib/Transforms/Utils/MisExpect.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/Utils/MisExpect.h b/llvm/include/llvm/Transforms/Utils/MisExpect.h
index 75eb976467701..216c99a26259a 100644
--- a/llvm/include/llvm/Transforms/Utils/MisExpect.h
+++ b/llvm/include/llvm/Transforms/Utils/MisExpect.h
@@ -70,8 +70,8 @@ void verifyMisExpect(Instruction &I, ArrayRef<uint32_t> RealWeights,
 /// around the checkFrontendInstrumentation and checkBackendInstrumentation APIs
 ///
 /// \param I The Instruction being checked
-/// \param RealWeights A vector of profile weights for each target block
-/// \param IsBackend A boolean describing if this is Frontend instrumentation
+/// \param ExistingWeights A vector of profile weights for each target block
+/// \param IsFrontend A boolean describing if this is Frontend instrumentation
 void checkExpectAnnotations(Instruction &I,
                             const ArrayRef<uint32_t> ExistingWeights,
                             bool IsFrontend);

diff  --git a/llvm/lib/Transforms/Utils/MisExpect.cpp b/llvm/lib/Transforms/Utils/MisExpect.cpp
index 4414b04c72645..d85e9ddb2beec 100644
--- a/llvm/lib/Transforms/Utils/MisExpect.cpp
+++ b/llvm/lib/Transforms/Utils/MisExpect.cpp
@@ -236,8 +236,8 @@ void checkFrontendInstrumentation(Instruction &I,
 
 void checkExpectAnnotations(Instruction &I,
                             const ArrayRef<uint32_t> ExistingWeights,
-                            bool IsFrontendInstr) {
-  if (IsFrontendInstr) {
+                            bool IsFrontend) {
+  if (IsFrontend) {
     checkFrontendInstrumentation(I, ExistingWeights);
   } else {
     checkBackendInstrumentation(I, ExistingWeights);


        


More information about the llvm-commits mailing list