MLIR  19.0.0git
OpenMPInterfaces.h
Go to the documentation of this file.
1 //===- OpenMPInterfaces.h - MLIR Interfaces for OpenMP ----------*- 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 file declares OpenMP Interface implementations for the OpenMP dialect.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_DIALECT_OPENMP_OPENMPINTERFACES_H_
14 #define MLIR_DIALECT_OPENMP_OPENMPINTERFACES_H_
15 
17 #include "mlir/IR/Dialect.h"
18 #include "mlir/IR/OpDefinition.h"
19 #include "mlir/IR/PatternMatch.h"
20 #include "mlir/IR/SymbolTable.h"
23 
24 #include "mlir/Dialect/OpenMP/OpenMPOpsInterfaces.h.inc"
25 
26 namespace mlir::omp {
27 // You can override defaults here or implement more complex implementations of
28 // functions. Or define a completely seperate external model implementation,
29 // to override the existing implementation.
31  : public OffloadModuleInterface::ExternalModel<OffloadModuleDefaultModel,
32  mlir::ModuleOp> {};
33 
34 template <typename T>
36  : public DeclareTargetInterface::ExternalModel<DeclareTargetDefaultModel<T>,
37  T> {};
38 
39 } // namespace mlir::omp
40 
41 #endif // MLIR_DIALECT_OPENMP_OPENMPINTERFACES_H_