[flang-commits] [flang] 3ab67c3 - [fir] Move Factory.h to flang/Optimizer/Builder

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Dec 16 07:08:39 PST 2021


Author: Valentin Clement
Date: 2021-12-16T16:08:34+01:00
New Revision: 3ab67c3d62e97579af6975e7f597a12fcac390d1

URL: https://github.com/llvm/llvm-project/commit/3ab67c3d62e97579af6975e7f597a12fcac390d1
DIFF: https://github.com/llvm/llvm-project/commit/3ab67c3d62e97579af6975e7f597a12fcac390d1.diff

LOG: [fir] Move Factory.h to flang/Optimizer/Builder

Move the Factory.h header file to flang/Optimizer/Builder.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: kiranchandramohan

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

Added: 
    flang/include/flang/Optimizer/Builder/Factory.h

Modified: 
    flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp

Removed: 
    flang/include/flang/Optimizer/Transforms/Factory.h


################################################################################
diff  --git a/flang/include/flang/Optimizer/Transforms/Factory.h b/flang/include/flang/Optimizer/Builder/Factory.h
similarity index 94%
rename from flang/include/flang/Optimizer/Transforms/Factory.h
rename to flang/include/flang/Optimizer/Builder/Factory.h
index b203413bea9fb..837f07b9e17b6 100644
--- a/flang/include/flang/Optimizer/Transforms/Factory.h
+++ b/flang/include/flang/Optimizer/Builder/Factory.h
@@ -1,4 +1,4 @@
-//===-- Optimizer/Transforms/Factory.h --------------------------*- C++ -*-===//
+//===-- Optimizer/Builder/Factory.h -----------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -12,8 +12,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef FORTRAN_OPTIMIZER_TRANSFORMS_FACTORY_H
-#define FORTRAN_OPTIMIZER_TRANSFORMS_FACTORY_H
+#ifndef FORTRAN_OPTIMIZER_BUILDER_FACTORY_H
+#define FORTRAN_OPTIMIZER_BUILDER_FACTORY_H
 
 #include "flang/Optimizer/Dialect/FIROps.h"
 #include "flang/Optimizer/Dialect/FIRType.h"
@@ -93,4 +93,4 @@ originateIndices(mlir::Location loc, B &builder, mlir::Type memTy,
 
 } // namespace fir::factory
 
-#endif // FORTRAN_OPTIMIZER_TRANSFORMS_FACTORY_H
+#endif // FORTRAN_OPTIMIZER_BUILDER_FACTORY_H

diff  --git a/flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp b/flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp
index c268a56cd9e67..90f073e8d97eb 100644
--- a/flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp
+++ b/flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp
@@ -9,9 +9,9 @@
 #include "PassDetail.h"
 #include "flang/Optimizer/Builder/BoxValue.h"
 #include "flang/Optimizer/Builder/FIRBuilder.h"
+#include "flang/Optimizer/Builder/Factory.h"
 #include "flang/Optimizer/Dialect/FIRDialect.h"
 #include "flang/Optimizer/Support/FIRContext.h"
-#include "flang/Optimizer/Transforms/Factory.h"
 #include "flang/Optimizer/Transforms/Passes.h"
 #include "mlir/Dialect/SCF/SCF.h"
 #include "mlir/Transforms/DialectConversion.h"


        


More information about the flang-commits mailing list