53 lines
1.4 KiB
C++
53 lines
1.4 KiB
C++
//===--- OpenMPKinds.def - OpenMP directives and clauses list ---*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
/// \file
|
|
/// \brief This file defines the list of supported OpenMP directives and
|
|
/// clauses.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef OPENMP_DIRECTIVE
|
|
# define OPENMP_DIRECTIVE(Name)
|
|
#endif
|
|
#ifndef OPENMP_CLAUSE
|
|
# define OPENMP_CLAUSE(Name, Class)
|
|
#endif
|
|
#ifndef OPENMP_PARALLEL_CLAUSE
|
|
# define OPENMP_PARALLEL_CLAUSE(Name)
|
|
#endif
|
|
#ifndef OPENMP_DEFAULT_KIND
|
|
# define OPENMP_DEFAULT_KIND(Name)
|
|
#endif
|
|
|
|
// OpenMP directives.
|
|
OPENMP_DIRECTIVE(threadprivate)
|
|
OPENMP_DIRECTIVE(parallel)
|
|
OPENMP_DIRECTIVE(task)
|
|
|
|
// OpenMP clauses.
|
|
OPENMP_CLAUSE(default, OMPDefaultClause)
|
|
OPENMP_CLAUSE(private, OMPPrivateClause)
|
|
OPENMP_CLAUSE(firstprivate, OMPFirstprivateClause)
|
|
OPENMP_CLAUSE(shared, OMPSharedClause)
|
|
|
|
// Clauses allowed for OpenMP directives.
|
|
OPENMP_PARALLEL_CLAUSE(default)
|
|
OPENMP_PARALLEL_CLAUSE(private)
|
|
OPENMP_PARALLEL_CLAUSE(firstprivate)
|
|
OPENMP_PARALLEL_CLAUSE(shared)
|
|
|
|
// Static attributes for 'default' clause.
|
|
OPENMP_DEFAULT_KIND(none)
|
|
OPENMP_DEFAULT_KIND(shared)
|
|
|
|
#undef OPENMP_DEFAULT_KIND
|
|
#undef OPENMP_DIRECTIVE
|
|
#undef OPENMP_CLAUSE
|
|
#undef OPENMP_PARALLEL_CLAUSE
|