[Mlir-commits] [mlir] de94b18 - [mlir] Fix top-level comments (NFC)

Lorenzo Chelini llvmlistbot at llvm.org
Thu Apr 29 04:07:15 PDT 2021


Author: Lorenzo Chelini
Date: 2021-04-29T13:06:40+02:00
New Revision: de94b1855c63f8357bc7ae6668996c4a42d2b5be

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

LOG: [mlir] Fix top-level comments (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/SCF/SCF.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SCF/SCF.cpp b/mlir/lib/Dialect/SCF/SCF.cpp
index b3f4b166947db..141b8802eff2e 100644
--- a/mlir/lib/Dialect/SCF/SCF.cpp
+++ b/mlir/lib/Dialect/SCF/SCF.cpp
@@ -1107,19 +1107,19 @@ struct ConvertTrivialIfToSelect : public OpRewritePattern<IfOp> {
   }
 };
 
-// Allow the true region of an if to assume the condition is true
-// and vice versa. For example:
-//
-//   scf.if %cmp {
-//      print(%cmp)
-//   }
-//
-//  becomes
-//
-//   scf.if %cmp {
-//      print(true)
-//   }
-//
+/// Allow the true region of an if to assume the condition is true
+/// and vice versa. For example:
+///
+///   scf.if %cmp {
+///      print(%cmp)
+///   }
+///
+///  becomes
+///
+///   scf.if %cmp {
+///      print(true)
+///   }
+///
 struct ConditionPropagation : public OpRewritePattern<IfOp> {
   using OpRewritePattern<IfOp>::OpRewritePattern;
 
@@ -1185,7 +1185,7 @@ struct ConditionPropagation : public OpRewritePattern<IfOp> {
 ///    print(%cmp)
 ///
 /// Additionally if both branches yield the same value, replace all uses
-/// of the result with the yielded value
+/// of the result with the yielded value.
 ///
 ///    %res:2 = scf.if %cmp {
 ///       yield something(), %arg1
@@ -1200,7 +1200,8 @@ struct ConditionPropagation : public OpRewritePattern<IfOp> {
 ///    } else {
 ///       yield something2()
 ///    }
-//    print(%arg1)
+///    print(%arg1)
+///
 struct ReplaceIfYieldWithConditionOrValue : public OpRewritePattern<IfOp> {
   using OpRewritePattern<IfOp>::OpRewritePattern;
 


        


More information about the Mlir-commits mailing list