[Mlir-commits] [mlir] 7eae9bb - [mlir][scf] Fix doc on `emitNormalizedLoopBounds`, NFC (#98372)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jul 10 22:34:28 PDT 2024
Author: Felix Schneider
Date: 2024-07-11T07:34:24+02:00
New Revision: 7eae9bb856135136cddc4208a2b1546e9db44c9c
URL: https://github.com/llvm/llvm-project/commit/7eae9bb856135136cddc4208a2b1546e9db44c9c
DIFF: https://github.com/llvm/llvm-project/commit/7eae9bb856135136cddc4208a2b1546e9db44c9c.diff
LOG: [mlir][scf] Fix doc on `emitNormalizedLoopBounds`, NFC (#98372)
Fix an old comment that doesn't match the function anymore.
Added:
Modified:
mlir/include/mlir/Dialect/SCF/Utils/Utils.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/SCF/Utils/Utils.h b/mlir/include/mlir/Dialect/SCF/Utils/Utils.h
index de807c3e4e1f8..b7d6e99b5fdcc 100644
--- a/mlir/include/mlir/Dialect/SCF/Utils/Utils.h
+++ b/mlir/include/mlir/Dialect/SCF/Utils/Utils.h
@@ -127,15 +127,8 @@ LogicalResult loopUnrollByFactor(
/// for operations with results are not supported.
LogicalResult loopUnrollJamByFactor(scf::ForOp forOp, uint64_t unrollFactor);
-/// Transform a loop with a strictly positive step
-/// for %i = %lb to %ub step %s
-/// into a 0-based loop with step 1
-/// for %ii = 0 to ceildiv(%ub - %lb, %s) step 1 {
-/// %i = %ii * %s + %lb
-/// Insert the induction variable remapping in the body of `inner`, which is
-/// expected to be either `loop` or another loop perfectly nested under `loop`.
-/// Insert the definition of new bounds immediate before `outer`, which is
-/// expected to be either `loop` or its parent in the loop nest.
+/// Materialize bounds and step of a zero-based and unit-step loop derived by
+/// normalizing the specified bounds and step.
Range emitNormalizedLoopBounds(RewriterBase &rewriter, Location loc,
OpFoldResult lb, OpFoldResult ub,
OpFoldResult step);
More information about the Mlir-commits
mailing list