Skip to content

Commit bf16180

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-identifier-naming in MemRefOps.cpp (NFC)
1 parent 841d20f commit bf16180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ void CopyOp::getCanonicalizationPatterns(RewritePatternSet &results,
850850
/// If the source/target of a CopyOp is a CastOp that does not modify the shape
851851
/// and element type, the cast can be skipped. Such CastOps only cast the layout
852852
/// of the type.
853-
static LogicalResult FoldCopyOfCast(CopyOp op) {
853+
static LogicalResult foldCopyOfCast(CopyOp op) {
854854
for (OpOperand &operand : op->getOpOperands()) {
855855
auto castOp = operand.get().getDefiningOp<memref::CastOp>();
856856
if (castOp && memref::CastOp::canFoldIntoConsumerOp(castOp)) {
@@ -865,7 +865,7 @@ LogicalResult CopyOp::fold(FoldAdaptor adaptor,
865865
SmallVectorImpl<OpFoldResult> &results) {
866866

867867
/// copy(memrefcast) -> copy
868-
return FoldCopyOfCast(*this);
868+
return foldCopyOfCast(*this);
869869
}
870870

871871
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)