xref: /llvm-project/flang/include/flang/Optimizer/CodeGen/CodeGenOpenMP.h (revision 206fad0e218e83799e49ca15545d997c6c5e8a03)
1 //===------- Optimizer/CodeGen/CodeGenOpenMP.h - OpenMP codegen -*- 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 #ifndef FORTRAN_OPTIMIZER_CODEGEN_CODEGENOPENMP_H
10 #define FORTRAN_OPTIMIZER_CODEGEN_CODEGENOPENMP_H
11 
12 #include "mlir/Pass/Pass.h"
13 #include "mlir/Pass/PassRegistry.h"
14 
15 namespace fir {
16 class LLVMTypeConverter;
17 
18 /// Specialised conversion patterns of OpenMP operations for FIR to LLVM
19 /// dialect, utilised in cases where the default OpenMP dialect handling cannot
20 /// handle all cases for intermingled fir types and operations.
21 void populateOpenMPFIRToLLVMConversionPatterns(
22     const LLVMTypeConverter &converter, mlir::RewritePatternSet &patterns);
23 
24 } // namespace fir
25 
26 #endif // FORTRAN_OPTIMIZER_CODEGEN_CODEGENOPENMP_H
27