FLANG
Passes.h
1//===- Passes.h - OpenACC pass entry points -------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This header declares the OpenACC passes specific to Fortran and FIR.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef FORTRAN_OPTIMIZER_OPENACC_PASSES_H
14#define FORTRAN_OPTIMIZER_OPENACC_PASSES_H
15
16#include "flang/Optimizer/Dialect/FIRDialect.h"
17#include "flang/Optimizer/HLFIR/HLFIRDialect.h"
18#include "mlir/Dialect/OpenACC/OpenACC.h"
19#include "mlir/IR/BuiltinOps.h"
20#include "mlir/Pass/Pass.h"
21#include "mlir/Pass/PassRegistry.h"
22
23#include <memory>
24
25namespace fir {
26namespace acc {
27#define GEN_PASS_DECL
28#define GEN_PASS_REGISTRATION
29#include "flang/Optimizer/OpenACC/Passes.h.inc"
30
31std::unique_ptr<mlir::Pass> createACCInitializeFIRAnalysesPass();
32std::unique_ptr<mlir::Pass> createACCRecipeBufferizationPass();
33
34} // namespace acc
35} // namespace fir
36
37#endif // FORTRAN_OPTIMIZER_OPENACC_PASSES_H
Definition AbstractConverter.h:34