[flang][NFC] Rename RewriteLoop.cpp to ControlFlowConverter.cpp
authorValentin Clement <clementval@gmail.com>
Thu, 10 Nov 2022 14:01:38 +0000 (15:01 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 10 Nov 2022 14:03:18 +0000 (15:03 +0100)
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

flang/lib/Optimizer/Transforms/CMakeLists.txt
flang/lib/Optimizer/Transforms/ControlFlowConverter.cpp [moved from flang/lib/Optimizer/Transforms/RewriteLoop.cpp with 99% similarity]

index 6089143..0e8bce8 100644 (file)
@@ -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
@@ -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.