1 | //===- OpenMPToLLVM.h - Utils to convert from the OpenMP dialect ----------===// |
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 | #ifndef MLIR_CONVERSION_OPENMPTOLLVM_CONVERTOPENMPTOLLVM_H |
9 | #define MLIR_CONVERSION_OPENMPTOLLVM_CONVERTOPENMPTOLLVM_H |
10 | |
11 | #include <memory> |
12 | |
13 | namespace mlir { |
14 | class LLVMTypeConverter; |
15 | class ConversionTarget; |
16 | class MLIRContext; |
17 | class Pass; |
18 | class RewritePatternSet; |
19 | |
20 | #define GEN_PASS_DECL_CONVERTOPENMPTOLLVMPASS |
21 | #include "mlir/Conversion/Passes.h.inc" |
22 | |
23 | /// Configure dynamic conversion legality of regionless operations from OpenMP |
24 | /// to LLVM. |
25 | void configureOpenMPToLLVMConversionLegality(ConversionTarget &target, |
26 | LLVMTypeConverter &typeConverter); |
27 | |
28 | /// Populate the given list with patterns that convert from OpenMP to LLVM. |
29 | void populateOpenMPToLLVMConversionPatterns(LLVMTypeConverter &converter, |
30 | RewritePatternSet &patterns); |
31 | } // namespace mlir |
32 | |
33 | #endif // MLIR_CONVERSION_OPENMPTOLLVM_CONVERTOPENMPTOLLVM_H |
34 | |