clang
6.0.0
|
This file implements parsing of all OpenMP directives and clauses. More...
#include "clang/AST/ASTContext.h"
#include "clang/AST/StmtOpenMP.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Parse/RAIIObjectsForParser.h"
#include "clang/Sema/Scope.h"
#include "llvm/ADT/PointerIntPair.h"
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) |
This file implements parsing of all OpenMP directives and clauses.
Definition in file ParseOpenMP.cpp.
Definition at line 29 of file ParseOpenMP.cpp.
|
static |
Definition at line 65 of file ParseOpenMP.cpp.
Referenced by ParseOpenMPDirectiveKind().
|
static |
Parses clauses for 'declare simd' directive.
clause: 'inbranch' | 'notinbranch' 'simdlen' '(' <expr> ')' { 'uniform' '(' <argument_list> ')' } { 'aligned '(' <argument_list> [ ':' <alignment> ] ')' } { 'linear '(' <argument_list> [ ':' <step> ] ')' }
Definition at line 513 of file ParseOpenMP.cpp.
References clang::AS_none, clang::Sema::CheckOpenMPLinearModifier(), clang::Parser::ConsumeToken(), clang::Parser::OpenMPVarListDataTy::DepLinMapLoc, Diag(), clang::Parser::Diag(), clang::ActionResult< PtrTy, CompressInvalid >::get(), clang::Parser::getActions(), clang::Parser::getCurToken(), clang::Token::getEndLoc(), clang::Token::getIdentifierInfo(), clang::Token::getLocation(), clang::IdentifierInfo::getName(), clang::getOpenMPClauseKind(), clang::getOpenMPDirectiveName(), clang::Token::is(), clang::format::FormatToken::is(), clang::ActionResult< PtrTy, CompressInvalid >::isInvalid(), clang::Token::isNot(), clang::format::FormatToken::isNot(), clang::ActionResult< PtrTy, CompressInvalid >::isUsable(), clang::Parser::OpenMPVarListDataTy::LinKind, clang::OMPC_uniform, ParseOpenMPDirectiveKind(), clang::Parser::ParseOpenMPParensExpr(), clang::Parser::ParseOpenMPVarList(), clang::Parser::OpenMPVarListDataTy::TailExpr, clang::format::Tok, and clang::DeclSpec::TST_unspecified.
|
static |
Definition at line 83 of file ParseOpenMP.cpp.
References clang::Parser::ConsumeToken(), clang::Parser::getCurToken(), getOpenMPDirectiveKindEx(), clang::Parser::getPreprocessor(), clang::Preprocessor::getSpelling(), clang::Preprocessor::LookAhead(), clang::OMPD_unknown, and clang::format::Tok.
Referenced by parseDeclareSimdClauses(), and clang::Parser::ParseOpenMPParensExpr().
|
static |
Definition at line 156 of file ParseOpenMP.cpp.
References clang::Parser::ConsumeToken(), clang::ASTContext::DeclarationNames, clang::Parser::Diag(), clang::BalancedDelimiterTracker::expectAndConsume(), clang::Parser::getActions(), clang::Sema::getASTContext(), clang::Parser::getCurToken(), clang::Token::getIdentifierInfo(), clang::Token::getKind(), clang::Token::getLocation(), clang::getOpenMPDirectiveName(), clang::Token::is(), clang::OO_None, clang::Parser::SkipUntil(), clang::Parser::StopBeforeMatch, clang::T, and clang::format::Tok.
|
static |
Definition at line 1621 of file ParseOpenMP.cpp.
References clang::Parser::ConsumeToken(), clang::Parser::getCurToken(), clang::Token::getKind(), clang::CXXScopeSpec::isEmpty(), clang::OO_None, clang::Parser::ParseUnqualifiedId(), and clang::UnqualifiedId::setOperatorFunctionId().
Referenced by clang::Parser::ParseOpenMPVarList().