[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
This commit is contained in:
Valentin Clement 2021-12-16 16:08:17 +01:00
parent 1a376bc285
commit 3ab67c3d62
No known key found for this signature in database
GPG Key ID: 086D54783C928776
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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"