[Mlir-commits] [mlir] 2c1ba63 - [mlir] Change missed usage PatternMatchResult to LogicalResult
River Riddle
llvmlistbot at llvm.org
Wed Mar 18 21:23:14 PDT 2020
Author: River Riddle
Date: 2020-03-18T21:22:24-07:00
New Revision: 2c1ba63edee468b03c39d7fcc34e93b205475dad
URL: https://github.com/llvm/llvm-project/commit/2c1ba63edee468b03c39d7fcc34e93b205475dad
DIFF: https://github.com/llvm/llvm-project/commit/2c1ba63edee468b03c39d7fcc34e93b205475dad.diff
LOG: [mlir] Change missed usage PatternMatchResult to LogicalResult
Added:
Modified:
mlir/lib/Conversion/StandardToStandard/StandardToStandard.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/StandardToStandard/StandardToStandard.cpp b/mlir/lib/Conversion/StandardToStandard/StandardToStandard.cpp
index 0138cf897563..e4734f31fd63 100644
--- a/mlir/lib/Conversion/StandardToStandard/StandardToStandard.cpp
+++ b/mlir/lib/Conversion/StandardToStandard/StandardToStandard.cpp
@@ -20,7 +20,7 @@ struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
: OpConversionPattern(ctx), converter(converter) {}
/// Hook for derived classes to implement combined matching and rewriting.
- PatternMatchResult
+ LogicalResult
matchAndRewrite(CallOp callOp, ArrayRef<Value> operands,
ConversionPatternRewriter &rewriter) const override {
FunctionType type = callOp.getCalleeType();
@@ -28,13 +28,13 @@ struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
// Convert the original function results.
SmallVector<Type, 1> convertedResults;
if (failed(converter.convertTypes(type.getResults(), convertedResults)))
- return matchFailure();
+ return failure();
// Substitute with the new result types from the corresponding FuncType
// conversion.
rewriter.replaceOpWithNewOp<CallOp>(callOp, callOp.callee(),
convertedResults, operands);
- return matchSuccess();
+ return success();
}
/// The type converter to use when rewriting the signature.
More information about the Mlir-commits
mailing list