mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 18:26:05 +00:00

A !$CUF KERNEL DO directive is allowed to have advisory REDUCE clauses similar to those in OpenACC and DO CONCURRENT. Parse and represent them. Semantic validation will follow.
30 lines
979 B
C++
30 lines
979 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef FORTRAN_SEMANTICS_RESOLVE_DIRECTIVES_H_
|
|
#define FORTRAN_SEMANTICS_RESOLVE_DIRECTIVES_H_
|
|
|
|
namespace Fortran::parser {
|
|
struct Name;
|
|
struct Program;
|
|
struct ProgramUnit;
|
|
} // namespace Fortran::parser
|
|
|
|
namespace Fortran::semantics {
|
|
class Scope;
|
|
class SemanticsContext;
|
|
|
|
// Name resolution for OpenACC and OpenMP directives
|
|
void ResolveAccParts(
|
|
SemanticsContext &, const parser::ProgramUnit &, Scope *topScope);
|
|
void ResolveOmpParts(SemanticsContext &, const parser::ProgramUnit &);
|
|
void ResolveOmpTopLevelParts(SemanticsContext &, const parser::Program &);
|
|
|
|
} // namespace Fortran::semantics
|
|
#endif
|