MLIR
22.0.0git
include
mlir
Dialect
OpenMP
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
16
#include "
mlir/Dialect/OpenMP/OpenMPClauseOperands.h
"
17
#include "
mlir/Dialect/OpenMP/OpenMPOpsEnums.h
"
18
#include "
mlir/IR/Dialect.h
"
19
#include "
mlir/IR/OpDefinition.h
"
20
#include "
mlir/IR/PatternMatch.h
"
21
#include "
mlir/IR/SymbolTable.h
"
22
#include "
mlir/Interfaces/ControlFlowInterfaces.h
"
23
#include "
mlir/Interfaces/SideEffectInterfaces.h
"
24
25
#define GET_OP_FWD_DEFINES
26
#include "mlir/Dialect/OpenMP/OpenMPOps.h.inc"
27
28
#include "mlir/Dialect/OpenMP/OpenMPOpsInterfaces.h.inc"
29
30
namespace
mlir::omp
{
31
// You can override defaults here or implement more complex implementations of
32
// functions. Or define a completely separate external model implementation,
33
// to override the existing implementation.
34
struct
OffloadModuleDefaultModel
35
:
public
OffloadModuleInterface::ExternalModel<OffloadModuleDefaultModel,
36
mlir::ModuleOp> {};
37
38
template
<
typename
T>
39
struct
DeclareTargetDefaultModel
40
:
public
DeclareTargetInterface::ExternalModel<DeclareTargetDefaultModel<T>,
41
T> {};
42
43
}
// namespace mlir::omp
44
45
#endif
// MLIR_DIALECT_OPENMP_OPENMPINTERFACES_H_
ControlFlowInterfaces.h
Dialect.h
OpDefinition.h
OpenMPClauseOperands.h
OpenMPOpsEnums.h
PatternMatch.h
SideEffectInterfaces.h
SymbolTable.h
mlir::omp
Definition:
OpenMPClauseOperands.h:25
mlir::omp::DeclareTargetDefaultModel
Definition:
OpenMPInterfaces.h:41
mlir::omp::OffloadModuleDefaultModel
Definition:
OpenMPInterfaces.h:36
Generated on Mon Sep 1 2025 04:33:47 for MLIR by
1.9.1