diff options
| author | River Riddle <riverriddle@google.com> | 2019-03-08 16:04:42 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 17:08:50 -0700 |
| commit | 80d3568c0a1110d85286b970bb2772aa125a30bf (patch) | |
| tree | 890d619b75c3a99c4fc86b99b7901446efbd0c4c /mlir/lib/Transforms/LoopTiling.cpp | |
| parent | e2c301441e5a8ee3b4b0dbe24ac9355064255bb6 (diff) | |
| download | bcm5719-llvm-80d3568c0a1110d85286b970bb2772aa125a30bf.tar.gz bcm5719-llvm-80d3568c0a1110d85286b970bb2772aa125a30bf.zip | |
Rename Status to LogicalResult to avoid conflictions with the Status in xla/tensorflow/etc.
PiperOrigin-RevId: 237537341
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
| -rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index 4fa9c5a44d3..4178fa963d5 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -173,8 +173,8 @@ static void constructTiledIndexSetHyperRect( /// Tiles the specified band of perfectly nested loops creating tile-space loops /// and intra-tile loops. A band is a contiguous set of loops. // TODO(bondhugula): handle non hyper-rectangular spaces. -Status mlir::tileCodeGen(MutableArrayRef<OpPointer<AffineForOp>> band, - ArrayRef<unsigned> tileSizes) { +LogicalResult mlir::tileCodeGen(MutableArrayRef<OpPointer<AffineForOp>> band, + ArrayRef<unsigned> tileSizes) { assert(!band.empty()); assert(band.size() == tileSizes.size() && "Incorrect number of tile sizes"); @@ -237,7 +237,7 @@ Status mlir::tileCodeGen(MutableArrayRef<OpPointer<AffineForOp>> band, if (!cst.isHyperRectangular(0, width)) { rootAffineForOp->emitError("tiled code generation unimplemented for the " "non-hyperrectangular case"); - return Status::failure(); + return LogicalResult::failure(); } constructTiledIndexSetHyperRect(origLoops, newLoops, tileSizes); @@ -249,7 +249,7 @@ Status mlir::tileCodeGen(MutableArrayRef<OpPointer<AffineForOp>> band, // Erase the old loop nest. rootAffineForOp->erase(); - return Status::success(); + return LogicalResult::success(); } // Identify valid and profitable bands of loops to tile. This is currently just |

