diff options
| author | River Riddle <riverriddle@google.com> | 2019-03-10 15:32:54 -0700 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 17:10:21 -0700 |
| commit | 0310d49f466bc92c007c54376310416c9064a449 (patch) | |
| tree | 76b29f6352456d8e90bafbb693d544f530ca4b6b /mlir/lib/Transforms/LoopTiling.cpp | |
| parent | 2d2b40bce5b6c77c3eee1a7b7437c7f6c602a699 (diff) | |
| download | bcm5719-llvm-0310d49f466bc92c007c54376310416c9064a449.tar.gz bcm5719-llvm-0310d49f466bc92c007c54376310416c9064a449.zip | |
Move the success/failure functions out of LogicalResult and into the mlir namespace.
PiperOrigin-RevId: 237712180
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
| -rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index 4178fa963d5..1a4b368c4c6 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -237,7 +237,7 @@ LogicalResult mlir::tileCodeGen(MutableArrayRef<OpPointer<AffineForOp>> band, if (!cst.isHyperRectangular(0, width)) { rootAffineForOp->emitError("tiled code generation unimplemented for the " "non-hyperrectangular case"); - return LogicalResult::failure(); + return failure(); } constructTiledIndexSetHyperRect(origLoops, newLoops, tileSizes); @@ -249,7 +249,7 @@ LogicalResult mlir::tileCodeGen(MutableArrayRef<OpPointer<AffineForOp>> band, // Erase the old loop nest. rootAffineForOp->erase(); - return LogicalResult::success(); + return success(); } // Identify valid and profitable bands of loops to tile. This is currently just |

