FLANG
include
flang
Tools
PointerModels.h
1
//===-- Tools/PointerModels.h --------------------- *-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_TOOLS_POINTER_MODELS_H
10
#define FORTRAN_TOOLS_POINTER_MODELS_H
11
12
#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
13
16
17
template
<
typename
T>
18
struct
OpenMPPointerLikeModel
19
:
public
mlir::omp::PointerLikeType::ExternalModel<
20
OpenMPPointerLikeModel<T>, T> {
21
mlir::Type getElementType(mlir::Type pointer)
const
{
22
return
mlir::cast<T>(pointer).getElementType();
23
}
24
};
25
26
#endif
// FORTRAN_TOOLS_POINTER_MODELS_H
OpenMPPointerLikeModel
Definition
PointerModels.h:20
Generated on
for FLANG by
1.14.0