diff --git a/flang/include/flang/Optimizer/CodeGen/CodeGen.h b/flang/include/flang/Optimizer/CodeGen/CodeGen.h new file mode 100644 --- /dev/null +++ b/flang/include/flang/Optimizer/CodeGen/CodeGen.h @@ -0,0 +1,34 @@ +//===-- Optimizer/CodeGen/CodeGen.h -- code generation ----------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef OPTIMIZER_CODEGEN_CODEGEN_H +#define OPTIMIZER_CODEGEN_CODEGEN_H + +#include + +namespace llvm { +class raw_ostream; +} +namespace mlir { +class Pass; +} + +namespace fir { + +struct NameUniquer; + +/// Convert FIR to the LLVM IR dialect +std::unique_ptr createFIRToLLVMPass(NameUniquer &uniquer); + +/// Convert the LLVM IR dialect to LLVM-IR proper +std::unique_ptr +createLLVMDialectToLLVMPass(llvm::raw_ostream &output); + +} // namespace fir + +#endif // OPTIMIZER_CODEGEN_CODEGEN_H