brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 8cdbe1d Raw
41 lines · cpp
1//===- FIROpenACCSupportAnalysis.cpp - 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-exception6//7//===----------------------------------------------------------------------===//8//9// This file implements the FIR-specific OpenACCSupport analysis.10//11//===----------------------------------------------------------------------===//12 13#include "flang/Optimizer/OpenACC/Analysis/FIROpenACCSupportAnalysis.h"14#include "flang/Optimizer/Builder/Todo.h"15#include "flang/Optimizer/OpenACC/Support/FIROpenACCUtils.h"16 17using namespace mlir;18 19namespace fir {20namespace acc {21 22std::string FIROpenACCSupportAnalysis::getVariableName(Value v) {23  return fir::acc::getVariableName(v, /*preferDemangledName=*/true);24}25 26std::string FIROpenACCSupportAnalysis::getRecipeName(mlir::acc::RecipeKind kind,27                                                     Type type, Value var) {28  return fir::acc::getRecipeName(kind, type, var);29}30 31mlir::InFlightDiagnostic32FIROpenACCSupportAnalysis::emitNYI(Location loc, const Twine &message) {33  TODO(loc, message);34  // Should be unreachable, but we return an actual diagnostic35  // to satisfy the interface.36  return mlir::emitError(loc, "not yet implemented: " + message.str());37}38 39} // namespace acc40} // namespace fir41