[Mlir-commits] [mlir] d0e2c79 - Fix method name to start with lower case to match style guide (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Aug 17 17:20:26 PDT 2020


Author: Mehdi Amini
Date: 2020-08-18T00:19:22Z
New Revision: d0e2c79b61a1e4f2cfb5a2a9842beb8aed74c522

URL: https://github.com/llvm/llvm-project/commit/d0e2c79b61a1e4f2cfb5a2a9842beb8aed74c522
DIFF: https://github.com/llvm/llvm-project/commit/d0e2c79b61a1e4f2cfb5a2a9842beb8aed74c522.diff

LOG: Fix method name to start with lower case to match style guide (NFC)

Added: 
    

Modified: 
    mlir/include/mlir/Interfaces/FoldInterfaces.h
    mlir/lib/IR/Operation.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Interfaces/FoldInterfaces.h b/mlir/include/mlir/Interfaces/FoldInterfaces.h
index 1399d9a56415..0c696747174a 100644
--- a/mlir/include/mlir/Interfaces/FoldInterfaces.h
+++ b/mlir/include/mlir/Interfaces/FoldInterfaces.h
@@ -30,7 +30,7 @@ class DialectFoldInterface
   /// 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<Attribute> operands,
+  virtual LogicalResult fold(Operation *op, ArrayRef<Attribute> operands,
                              SmallVectorImpl<OpFoldResult> &results) const {
     return failure();
   }

diff  --git a/mlir/lib/IR/Operation.cpp b/mlir/lib/IR/Operation.cpp
index 152ed0124767..4ddc3df38a7e 100644
--- a/mlir/lib/IR/Operation.cpp
+++ b/mlir/lib/IR/Operation.cpp
@@ -575,7 +575,7 @@ LogicalResult Operation::fold(ArrayRef<Attribute> 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


        


More information about the Mlir-commits mailing list