summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2018-12-28 08:48:09 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 14:43:13 -0700
commit69d9e990facf4d07c31b96e47e98cde07228f229 (patch)
treecf76ee03ebef0e449412063a04fd773dcf9c5115 /mlir/lib/Transforms/Utils/LoopUtils.cpp
parentf845bc4542719878d9d21d94eef96fb05a254913 (diff)
downloadbcm5719-llvm-69d9e990facf4d07c31b96e47e98cde07228f229.tar.gz
bcm5719-llvm-69d9e990facf4d07c31b96e47e98cde07228f229.zip
Eliminate the using decls for MLFunction and CFGFunction standardizing on
Function. This is step 18/n towards merging instructions and statements, NFC. PiperOrigin-RevId: 227139399
Diffstat (limited to 'mlir/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--mlir/lib/Transforms/Utils/LoopUtils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index 4a2831c0a83..7def4fe2f09 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -122,9 +122,9 @@ bool mlir::promoteIfSingleIteration(ForStmt *forStmt) {
return true;
}
-/// Promotes all single iteration for stmt's in the MLFunction, i.e., moves
+/// Promotes all single iteration for stmt's in the Function, i.e., moves
/// their body into the containing StmtBlock.
-void mlir::promoteSingleIterationLoops(MLFunction *f) {
+void mlir::promoteSingleIterationLoops(Function *f) {
// Gathers all innermost loops through a post order pruned walk.
class LoopBodyPromoter : public StmtWalker<LoopBodyPromoter> {
public:
@@ -357,8 +357,8 @@ bool mlir::loopUnrollByFactor(ForStmt *forStmt, uint64_t unrollFactor) {
auto ubMap = forStmt->getUpperBoundMap();
// Loops with max/min expressions won't be unrolled here (the output can't be
- // expressed as an MLFunction in the general case). However, the right way to
- // do such unrolling for an MLFunction would be to specialize the loop for the
+ // expressed as a Function in the general case). However, the right way to
+ // do such unrolling for a Function would be to specialize the loop for the
// 'hotspot' case and unroll that hotspot.
if (lbMap.getNumResults() != 1 || ubMap.getNumResults() != 1)
return false;
OpenPOWER on IntegriCloud