summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopUnroll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Transforms/LoopUnroll.cpp')
-rw-r--r--mlir/lib/Transforms/LoopUnroll.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Transforms/LoopUnroll.cpp b/mlir/lib/Transforms/LoopUnroll.cpp
index 5687c6126d1..3b79d6245be 100644
--- a/mlir/lib/Transforms/LoopUnroll.cpp
+++ b/mlir/lib/Transforms/LoopUnroll.cpp
@@ -79,7 +79,7 @@ struct LoopUnroll : public FunctionPass<LoopUnroll> {
void runOnFunction() override;
- /// Unroll this for inst. Returns failure if nothing was done.
+ /// Unroll this for op. Returns failure if nothing was done.
LogicalResult runOnAffineForOp(AffineForOp forOp);
static const unsigned kDefaultUnrollFactor = 4;
@@ -106,7 +106,7 @@ void LoopUnroll::runOnFunction() {
hasInnerLoops |= walkPostOrder(&(*Start++));
return hasInnerLoops;
}
- bool walkPostOrder(Instruction *opInst) {
+ bool walkPostOrder(Operation *opInst) {
bool hasInnerLoops = false;
for (auto &region : opInst->getRegions())
for (auto &block : region)
@@ -158,7 +158,7 @@ void LoopUnroll::runOnFunction() {
}
}
-/// Unrolls a 'affine.for' inst. Returns success if the loop was unrolled,
+/// Unrolls a 'affine.for' op. Returns success if the loop was unrolled,
/// failure otherwise. The default unroll factor is 4.
LogicalResult LoopUnroll::runOnAffineForOp(AffineForOp forOp) {
// Use the function callback if one was provided.
OpenPOWER on IntegriCloud