Fix method name to start with lower case to match style guide (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Fri, 14 Aug 2020 09:38:37 +0000 (09:38 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 18 Aug 2020 00:19:22 +0000 (00:19 +0000)
mlir/include/mlir/Interfaces/FoldInterfaces.h
mlir/lib/IR/Operation.cpp

index 1399d9a..0c69674 100644 (file)
@@ -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<Attribute> operands,
+  virtual LogicalResult fold(Operation *op, ArrayRef<Attribute> operands,
                              SmallVectorImpl<OpFoldResult> &results) const {
     return failure();
   }
index 152ed01..4ddc3df 100644 (file)
@@ -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