[flang-commits] [flang] 4299ff5 - [flang][NFC] Rename RewriteLoop.cpp to ControlFlowConverter.cpp

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Nov 10 06:03:27 PST 2022


Author: Valentin Clement
Date: 2022-11-10T15:03:18+01:00
New Revision: 4299ff548e96a4981cda17a80573f4a71816a02a

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

LOG: [flang][NFC] Rename RewriteLoop.cpp to ControlFlowConverter.cpp

RewriteLoop.cpp is containing more than just loop conversion. It will
soon contains the fir.select_type conversion as well. This patch
renames the file so it is in line with the pass name.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D137773

Added: 
    flang/lib/Optimizer/Transforms/ControlFlowConverter.cpp

Modified: 
    flang/lib/Optimizer/Transforms/CMakeLists.txt

Removed: 
    flang/lib/Optimizer/Transforms/RewriteLoop.cpp


################################################################################
diff  --git a/flang/lib/Optimizer/Transforms/CMakeLists.txt b/flang/lib/Optimizer/Transforms/CMakeLists.txt
index 60891438ad5a5..0e8bce8ee56fe 100644
--- a/flang/lib/Optimizer/Transforms/CMakeLists.txt
+++ b/flang/lib/Optimizer/Transforms/CMakeLists.txt
@@ -4,11 +4,11 @@ add_flang_library(FIRTransforms
   AffineDemotion.cpp
   AnnotateConstant.cpp
   CharacterConversion.cpp
+  ControlFlowConverter.cpp
   ArrayValueCopy.cpp
   ExternalNameConversion.cpp
   MemoryAllocation.cpp
   MemRefDataFlowOpt.cpp
-  RewriteLoop.cpp
   SimplifyRegionLite.cpp
   AlgebraicSimplification.cpp
   SimplifyIntrinsics.cpp

diff  --git a/flang/lib/Optimizer/Transforms/RewriteLoop.cpp b/flang/lib/Optimizer/Transforms/ControlFlowConverter.cpp
similarity index 99%
rename from flang/lib/Optimizer/Transforms/RewriteLoop.cpp
rename to flang/lib/Optimizer/Transforms/ControlFlowConverter.cpp
index 579c996383e90..72ab70ca1e70d 100644
--- a/flang/lib/Optimizer/Transforms/RewriteLoop.cpp
+++ b/flang/lib/Optimizer/Transforms/ControlFlowConverter.cpp
@@ -1,4 +1,4 @@
-//===-- RewriteLoop.cpp ---------------------------------------------------===//
+//===-- ControlFlowConverter.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 flang-commits mailing list