FLANG
FIROpenACCSupportAnalysis.h
1//===- FIROpenACCSupportAnalysis.h - FIR OpenACCSupport Analysis ----------===//
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 defines the FIR-specific implementation of OpenACCSupport analysis.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef FORTRAN_OPTIMIZER_OPENACC_ANALYSIS_FIROPENACCSUPPORTANALYSIS_H
14#define FORTRAN_OPTIMIZER_OPENACC_ANALYSIS_FIROPENACCSUPPORTANALYSIS_H
15
16#include "mlir/Dialect/OpenACC/OpenACC.h"
17#include "mlir/IR/Value.h"
18#include <string>
19
20namespace fir {
21namespace acc {
22
35class FIROpenACCSupportAnalysis {
36public:
37 FIROpenACCSupportAnalysis() = default;
38
39 std::string getVariableName(mlir::Value v);
40
41 std::string getRecipeName(mlir::acc::RecipeKind kind, mlir::Type type,
42 mlir::Value var);
43
44 mlir::InFlightDiagnostic emitNYI(mlir::Location loc,
45 const mlir::Twine &message);
46};
47
48} // namespace acc
49} // namespace fir
50
51#endif // FORTRAN_OPTIMIZER_OPENACC_ANALYSIS_FIROPENACCSUPPORTANALYSIS_H
Definition AbstractConverter.h:34