From f1b848e4701a4cd3fa781c259e3728faff1c31df Mon Sep 17 00:00:00 2001 From: River Riddle Date: Tue, 4 Jun 2019 19:18:23 -0700 Subject: NFC: Rename FuncBuilder to OpBuilder and refactor to take a top level region instead of a function. PiperOrigin-RevId: 251563898 --- mlir/lib/Transforms/LoopTiling.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mlir/lib/Transforms/LoopTiling.cpp') diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index 5233081b5f1..c1be6e8f6b1 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -112,7 +112,7 @@ constructTiledIndexSetHyperRect(MutableArrayRef origLoops, assert(!origLoops.empty()); assert(origLoops.size() == tileSizes.size()); - FuncBuilder b(origLoops[0].getOperation()); + OpBuilder b(origLoops[0].getOperation()); unsigned width = origLoops.size(); // Bounds for tile space loops. @@ -207,7 +207,7 @@ LogicalResult mlir::tileCodeGen(MutableArrayRef band, // Add intra-tile (or point) loops. for (unsigned i = 0; i < width; i++) { - FuncBuilder b(topLoop); + OpBuilder b(topLoop); // Loop bounds will be set later. auto pointLoop = b.create(loc, 0, 0); pointLoop.getBody()->getOperations().splice( @@ -221,7 +221,7 @@ LogicalResult mlir::tileCodeGen(MutableArrayRef band, // Add tile space loops; for (unsigned i = width; i < 2 * width; i++) { - FuncBuilder b(topLoop); + OpBuilder b(topLoop); // Loop bounds will be set later. auto tileSpaceLoop = b.create(loc, 0, 0); tileSpaceLoop.getBody()->getOperations().splice( -- cgit v1.2.3