From d0e2c79b61a1e4f2cfb5a2a9842beb8aed74c522 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 14 Aug 2020 09:38:37 +0000 Subject: [PATCH] Fix method name to start with lower case to match style guide (NFC) --- mlir/include/mlir/Interfaces/FoldInterfaces.h | 2 +- mlir/lib/IR/Operation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/include/mlir/Interfaces/FoldInterfaces.h b/mlir/include/mlir/Interfaces/FoldInterfaces.h index 1399d9a..0c69674 100644 --- a/mlir/include/mlir/Interfaces/FoldInterfaces.h +++ b/mlir/include/mlir/Interfaces/FoldInterfaces.h @@ -30,7 +30,7 @@ public: /// the operands of the operation, but may be null if non-constant. If /// folding is successful, this fills in the `results` vector. If not, this /// returns failure and `results` is unspecified. - virtual LogicalResult Fold(Operation *op, ArrayRef operands, + virtual LogicalResult fold(Operation *op, ArrayRef operands, SmallVectorImpl &results) const { return failure(); } diff --git a/mlir/lib/IR/Operation.cpp b/mlir/lib/IR/Operation.cpp index 152ed01..4ddc3df 100644 --- a/mlir/lib/IR/Operation.cpp +++ b/mlir/lib/IR/Operation.cpp @@ -575,7 +575,7 @@ LogicalResult Operation::fold(ArrayRef operands, if (!interface) return failure(); - return interface->Fold(this, operands, results); + return interface->fold(this, operands, results); } /// Emit an error with the op name prefixed, like "'dim' op " which is -- 2.7.4