//===- FIROpenACCSupportAnalysis.cpp - FIR OpenACCSupport Analysis -------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file implements the FIR-specific OpenACCSupport analysis. // //===----------------------------------------------------------------------===// #include "flang/Optimizer/OpenACC/Analysis/FIROpenACCSupportAnalysis.h" #include "flang/Optimizer/Builder/Todo.h" #include "flang/Optimizer/OpenACC/Support/FIROpenACCUtils.h" using namespace mlir; namespace fir { namespace acc { std::string FIROpenACCSupportAnalysis::getVariableName(Value v) { return fir::acc::getVariableName(v, /*preferDemangledName=*/true); } std::string FIROpenACCSupportAnalysis::getRecipeName(mlir::acc::RecipeKind kind, Type type, Value var) { return fir::acc::getRecipeName(kind, type, var); } mlir::InFlightDiagnostic FIROpenACCSupportAnalysis::emitNYI(Location loc, const Twine &message) { TODO(loc, message); // Should be unreachable, but we return an actual diagnostic // to satisfy the interface. return mlir::emitError(loc, "not yet implemented: " + message.str()); } } // namespace acc } // namespace fir