clang  3.9.0
Enumerations | Functions
ParseOpenMP.cpp File Reference

This file implements parsing of all OpenMP directives and clauses. More...

#include "RAIIObjectsForParser.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/StmtOpenMP.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Sema/Scope.h"
#include "llvm/ADT/PointerIntPair.h"
Include dependency graph for ParseOpenMP.cpp:

Go to the source code of this file.

Enumerations

enum  OpenMPDirectiveKindEx
 

Functions

static unsigned getOpenMPDirectiveKindEx (StringRef S)
 
static OpenMPDirectiveKind ParseOpenMPDirectiveKind (Parser &P)
 
static DeclarationName parseOpenMPReductionId (Parser &P)
 
static bool parseDeclareSimdClauses (Parser &P, OMPDeclareSimdDeclAttr::BranchStateTy &BS, ExprResult &SimdLen, SmallVectorImpl< Expr * > &Uniforms, SmallVectorImpl< Expr * > &Aligneds, SmallVectorImpl< Expr * > &Alignments, SmallVectorImpl< Expr * > &Linears, SmallVectorImpl< unsigned > &LinModifiers, SmallVectorImpl< Expr * > &Steps)
 Parses clauses for 'declare simd' directive. More...
 
static bool ParseReductionId (Parser &P, CXXScopeSpec &ReductionIdScopeSpec, UnqualifiedId &ReductionId)
 

Detailed Description

This file implements parsing of all OpenMP directives and clauses.

Definition in file ParseOpenMP.cpp.

Enumeration Type Documentation

Definition at line 30 of file ParseOpenMP.cpp.

Function Documentation

static unsigned getOpenMPDirectiveKindEx ( StringRef  S)
static

Definition at line 64 of file ParseOpenMP.cpp.

References clang::getOpenMPDirectiveKind(), clang::OMPD_unknown, and S.

Referenced by ParseOpenMPDirectiveKind().

static bool parseDeclareSimdClauses ( Parser P,
OMPDeclareSimdDeclAttr::BranchStateTy &  BS,
ExprResult SimdLen,
SmallVectorImpl< Expr * > &  Uniforms,
SmallVectorImpl< Expr * > &  Aligneds,
SmallVectorImpl< Expr * > &  Alignments,
SmallVectorImpl< Expr * > &  Linears,
SmallVectorImpl< unsigned > &  LinModifiers,
SmallVectorImpl< Expr * > &  Steps 
)
static
static OpenMPDirectiveKind ParseOpenMPDirectiveKind ( Parser P)
static
static DeclarationName parseOpenMPReductionId ( Parser P)
static
static bool ParseReductionId ( Parser P,
CXXScopeSpec ReductionIdScopeSpec,
UnqualifiedId ReductionId 
)
static