clang  3.9.0
Macros | Functions
ParsePragma.cpp File Reference
#include "RAIIObjectsForParser.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/PragmaKinds.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Sema/LoopHint.h"
#include "clang/Sema/Scope.h"
#include "llvm/ADT/StringSwitch.h"
#include "clang/Basic/OpenCLExtensions.def"
Include dependency graph for ParsePragma.cpp:

Go to the source code of this file.

Macros

#define OPENCLEXT(nm)
 
#define OPENCLEXT(nm)
 

Functions

static std::string PragmaLoopHintString (Token PragmaName, Token Option)
 
static void ParseAlignPragma (Preprocessor &PP, Token &FirstTok, bool IsOptions)
 
static bool ParseLoopHintValue (Preprocessor &PP, Token &Tok, Token PragmaName, Token Option, bool ValueInParens, PragmaLoopHintInfo &Info)
 Parses loop or unroll pragma hint value and fills in Info. More...
 

Macro Definition Documentation

#define OPENCLEXT (   nm)
Value:
if (Supp.is_##nm##_supported_extension(CLVer)) \
f.nm = 0;
#define OPENCLEXT (   nm)
Value:
else if (ename->isStr(#nm)) \
if (Supp.is_##nm##_supported_extension(CLVer)) \
f.nm = state; \
else if (Supp.is_##nm##_supported_core(CLVer)) \
PP.Diag(NameLoc, diag::warn_pragma_extension_is_core) << ename; \
else \
PP.Diag(NameLoc, diag::warn_pragma_unsupported_extension) << ename;
i32 captured_struct **param SharedsTy A type which contains references the shared variables *param Shareds Context with the list of shared variables from the p *TaskFunction *param Data Additional data for task generation like final * state
if(T->getSizeExpr()) TRY_TO(TraverseStmt(T-> getSizeExpr()))

Function Documentation

static void ParseAlignPragma ( Preprocessor PP,
Token FirstTok,
bool  IsOptions 
)
static
static bool ParseLoopHintValue ( Preprocessor PP,
Token Tok,
Token  PragmaName,
Token  Option,
bool  ValueInParens,
PragmaLoopHintInfo &  Info 
)
static
static std::string PragmaLoopHintString ( Token  PragmaName,
Token  Option 
)
static