MLIR
22.0.0git
include
mlir
Conversion
OpenMPToLLVM
ConvertOpenMPToLLVM.h
Go to the documentation of this file.
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
DialectRegistry
;
15
class
LLVMTypeConverter
;
16
class
ConversionTarget;
17
class
MLIRContext
;
18
class
Pass
;
19
class
RewritePatternSet
;
20
21
#define GEN_PASS_DECL_CONVERTOPENMPTOLLVMPASS
22
#include "mlir/Conversion/Passes.h.inc"
23
24
/// Configure dynamic conversion legality of regionless operations from OpenMP
25
/// to LLVM.
26
void
configureOpenMPToLLVMConversionLegality
(
27
ConversionTarget
&
target
,
const
LLVMTypeConverter &typeConverter);
28
29
/// Populate the given list with patterns that convert from OpenMP to LLVM.
30
void
populateOpenMPToLLVMConversionPatterns
(LLVMTypeConverter &converter,
31
RewritePatternSet &
patterns
);
32
33
/// Registers the `ConvertToLLVMPatternInterface` interface in the `OpenMP`
34
/// dialect.
35
void
registerConvertOpenMPToLLVMInterface
(DialectRegistry ®istry);
36
}
// namespace mlir
37
38
#endif
// MLIR_CONVERSION_OPENMPTOLLVM_CONVERTOPENMPTOLLVM_H
target
target
Definition
LinalgTransformOps.cpp:2096
ConversionTarget
mlir::DialectRegistry
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Definition
DialectRegistry.h:139
mlir::LLVMTypeConverter
Conversion from types to the LLVM IR dialect.
Definition
TypeConverter.h:35
mlir::MLIRContext
MLIRContext is the top-level object for a collection of MLIR operations.
Definition
MLIRContext.h:63
mlir::Pass
The abstract base pass class.
Definition
Pass.h:51
mlir::RewritePatternSet
Definition
PatternMatch.h:816
mlir
Include the generated interface declarations.
Definition
AliasAnalysis.h:19
mlir::populateOpenMPToLLVMConversionPatterns
void populateOpenMPToLLVMConversionPatterns(LLVMTypeConverter &converter, RewritePatternSet &patterns)
Populate the given list with patterns that convert from OpenMP to LLVM.
Definition
OpenMPToLLVM.cpp:147
mlir::patterns
const FrozenRewritePatternSet & patterns
Definition
GreedyPatternRewriteDriver.h:283
mlir::registerConvertOpenMPToLLVMInterface
void registerConvertOpenMPToLLVMInterface(DialectRegistry ®istry)
Registers the ConvertToLLVMPatternInterface interface in the OpenMP dialect.
Definition
OpenMPToLLVM.cpp:214
mlir::configureOpenMPToLLVMConversionLegality
void configureOpenMPToLLVMConversionLegality(ConversionTarget &target, const LLVMTypeConverter &typeConverter)
Configure dynamic conversion legality of regionless operations from OpenMP to LLVM.
Definition
OpenMPToLLVM.cpp:119
Generated on
for MLIR by
1.14.0