[Mlir-commits] [mlir] 2d3b54f - [mlir][tensor] NFC: name various Transforms/ files consistently
Lei Zhang
llvmlistbot at llvm.org
Tue Sep 20 17:21:50 PDT 2022
Author: Lei Zhang
Date: 2022-09-20T20:17:29-04:00
New Revision: 2d3b54feb25b36f8c76333718adb17e47d9953ca
URL: https://github.com/llvm/llvm-project/commit/2d3b54feb25b36f8c76333718adb17e47d9953ca
DIFF: https://github.com/llvm/llvm-project/commit/2d3b54feb25b36f8c76333718adb17e47d9953ca.diff
LOG: [mlir][tensor] NFC: name various Transforms/ files consistently
Use a suffix to make clear what the contents inside each file
are.
Reviewed By: ThomasRaoux
Differential Revision: https://reviews.llvm.org/D134202
Added:
mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshapeUtils.cpp
mlir/lib/Dialect/Tensor/Transforms/SplitPaddingPatterns.cpp
mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducerPatterns.cpp
Modified:
mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt
Removed:
mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshape.cpp
mlir/lib/Dialect/Tensor/Transforms/SplitPadding.cpp
mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducer.cpp
################################################################################
diff --git a/mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt b/mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt
index 73bab5685ab6a..104560a20f3bb 100644
--- a/mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt
+++ b/mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt
@@ -1,10 +1,10 @@
add_mlir_dialect_library(MLIRTensorTransforms
BufferizableOpInterfaceImpl.cpp
Bufferize.cpp
- ExtractSliceFromReshape.cpp
+ ExtractSliceFromReshapeUtils.cpp
MergeConsecutiveInsertExtractSlicePatterns.cpp
- SplitPadding.cpp
- SwapExtractSliceWithProducer.cpp
+ SplitPaddingPatterns.cpp
+ SwapExtractSliceWithProducerPatterns.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Tensor/Transforms
diff --git a/mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshape.cpp b/mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshapeUtils.cpp
similarity index 98%
rename from mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshape.cpp
rename to mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshapeUtils.cpp
index dcee9deff5cad..5ef833bdbd158 100644
--- a/mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshape.cpp
+++ b/mlir/lib/Dialect/Tensor/Transforms/ExtractSliceFromReshapeUtils.cpp
@@ -1,4 +1,4 @@
-//===- ExtractSliceFromReshape.cpp - Slice reshape rewrites-------*- C++-*-===//
+//===- ExtractSliceFromReshapeUtils.cpp - Slice reshape rewrites ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
diff --git a/mlir/lib/Dialect/Tensor/Transforms/SplitPadding.cpp b/mlir/lib/Dialect/Tensor/Transforms/SplitPaddingPatterns.cpp
similarity index 98%
rename from mlir/lib/Dialect/Tensor/Transforms/SplitPadding.cpp
rename to mlir/lib/Dialect/Tensor/Transforms/SplitPaddingPatterns.cpp
index eeca328493d98..e358b8b8a1e54 100644
--- a/mlir/lib/Dialect/Tensor/Transforms/SplitPadding.cpp
+++ b/mlir/lib/Dialect/Tensor/Transforms/SplitPaddingPatterns.cpp
@@ -1,4 +1,4 @@
-//===- SplitPadding.cpp - Splitting tensor.pad Op -------------------------===//
+//===- SplitPaddingPatterns.cpp - Splitting tensor.pad Op -----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
diff --git a/mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducer.cpp b/mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducerPatterns.cpp
similarity index 95%
rename from mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducer.cpp
rename to mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducerPatterns.cpp
index be7695e8b24e2..00590e374e894 100644
--- a/mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducer.cpp
+++ b/mlir/lib/Dialect/Tensor/Transforms/SwapExtractSliceWithProducerPatterns.cpp
@@ -1,4 +1,4 @@
-//===- SwapExtractSliceWithProducer.cpp - Swapping `tensor.extract_slice` ---=//
+//===- SwapExtractSliceWithProducerPatterns.cpp ---------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
More information about the Mlir-commits
mailing list