[Mlir-commits] [mlir] bf16180 - [MLIR] Apply clang-tidy fixes for readability-identifier-naming in MemRefOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Dec 17 11:17:08 PST 2025
Author: Mehdi Amini
Date: 2025-12-17T11:16:52-08:00
New Revision: bf161806dc6ec455483777f8a66e6987fb138558
URL: https://github.com/llvm/llvm-project/commit/bf161806dc6ec455483777f8a66e6987fb138558
DIFF: https://github.com/llvm/llvm-project/commit/bf161806dc6ec455483777f8a66e6987fb138558.diff
LOG: [MLIR] Apply clang-tidy fixes for readability-identifier-naming in MemRefOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp b/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
index 1035d7cb46e6e..620cc97b9e3a2 100644
--- a/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
+++ b/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
@@ -850,7 +850,7 @@ void CopyOp::getCanonicalizationPatterns(RewritePatternSet &results,
/// If the source/target of a CopyOp is a CastOp that does not modify the shape
/// and element type, the cast can be skipped. Such CastOps only cast the layout
/// of the type.
-static LogicalResult FoldCopyOfCast(CopyOp op) {
+static LogicalResult foldCopyOfCast(CopyOp op) {
for (OpOperand &operand : op->getOpOperands()) {
auto castOp = operand.get().getDefiningOp<memref::CastOp>();
if (castOp && memref::CastOp::canFoldIntoConsumerOp(castOp)) {
@@ -865,7 +865,7 @@ LogicalResult CopyOp::fold(FoldAdaptor adaptor,
SmallVectorImpl<OpFoldResult> &results) {
/// copy(memrefcast) -> copy
- return FoldCopyOfCast(*this);
+ return foldCopyOfCast(*this);
}
//===----------------------------------------------------------------------===//
More information about the Mlir-commits
mailing list