Home
last modified time | relevance | path

Searched refs:OpenCLVersion (Results 1 – 20 of 20) sorted by relevance

/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DOpenCLOptions.h40 static inline OpenCLVersionID encodeOpenCLVersion(unsigned OpenCLVersion) { in encodeOpenCLVersion() argument
41 switch (OpenCLVersion) { in encodeOpenCLVersion()
61 auto CLVer = LO.OpenCLCPlusPlus ? 200 : LO.OpenCLVersion; in isOpenCLVersionContainedInMask()
82 return Opts.OpenCLCPlusPlus || Opts.OpenCLVersion == 200 || in areProgramScopeVariablesSupported()
83 (Opts.OpenCLVersion == 300 && in areProgramScopeVariablesSupported()
118 auto CLVer = LO.OpenCLCPlusPlus ? 200 : LO.OpenCLVersion; in isAvailableIn()
H A DLangOptions.def223 LANGOPT(OpenCLVersion , 32, 0, "OpenCL C version")
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DBuiltins.cpp72 bool OclC1Unsupported = (LangOpts.OpenCLVersion / 100) != 1 && in builtinIsSupported()
75 (LangOpts.OpenCLVersion != 200 && !LangOpts.OpenCLCPlusPlus) && in builtinIsSupported()
H A DLangOptions.cpp49 const int Ver = OpenCLCPlusPlus ? OpenCLCPlusPlusVersion : OpenCLVersion; in getOpenCLVersionTuple()
H A DTargetInfo.cpp409 if (Opts.OpenCLVersion == 300) { in adjust()
H A DTargets.cpp748 if (Opts.OpenCLCPlusPlus || Opts.OpenCLVersion < 300) in validateOpenCLTarget()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp506 if (Args.getLastArg(OPT_cl_strict_aliasing) && LangOpts.OpenCLVersion > 100) in FixupInvocation()
3158 Opts.OpenCLVersion = 100; in setLangDefaults()
3160 Opts.OpenCLVersion = 110; in setLangDefaults()
3162 Opts.OpenCLVersion = 120; in setLangDefaults()
3164 Opts.OpenCLVersion = 200; in setLangDefaults()
3166 Opts.OpenCLVersion = 300; in setLangDefaults()
3176 Opts.OpenCLPipes = Opts.OpenCLCPlusPlus || Opts.OpenCLVersion == 200; in setLangDefaults()
3178 Opts.OpenCLCPlusPlus || Opts.OpenCLVersion == 200; in setLangDefaults()
3402 if (Opts.Blocks && !(Opts.OpenCL && Opts.OpenCLVersion == 200)) in GenerateLangArgs()
3779 && Opts.OpenCLVersion == 200); in ParseLangArgs()
H A DInitPreprocessor.cpp449 switch (LangOpts.OpenCLVersion) { in InitializeStandardPredefinedMacros()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DDeclSpec.cpp634 if (S.getLangOpts().OpenCLVersion < 120 && in SetStorageClassSpec()
H A DSemaExprMember.cpp343 if (S.getLangOpts().OpenCL && S.getLangOpts().OpenCLVersion < 300) { in CheckExtVectorComponent()
H A DSemaType.cpp1372 } else if ((S.getLangOpts().OpenCLVersion >= 200 || in ConvertDeclSpecToType()
1536 << (S.getLangOpts().OpenCLVersion == 300 in ConvertDeclSpecToType()
1729 bool IsOpenCLC30 = (S.getLangOpts().OpenCLVersion == 300); in ConvertDeclSpecToType()
5096 (LangOpts.OpenCLCPlusPlus || LangOpts.OpenCLVersion >= 120)) || in GetFullTypeForDeclarator()
H A DSema.cpp327 if (getLangOpts().OpenCLCPlusPlus || getLangOpts().OpenCLVersion >= 200) { in Initialize()
H A DSemaDeclAttr.cpp7456 if (S.LangOpts.OpenCLVersion != 200) in handleOpenCLNoSVMAttr()
7494 (S.getLangOpts().OpenCLVersion < 200) || in handleOpenCLAccessAttr()
7495 (S.getLangOpts().OpenCLVersion == 300 && in handleOpenCLAccessAttr()
H A DSemaExpr.cpp3880 << (getLangOpts().OpenCLVersion >= 300); in ActOnNumericConstant()
12194 if (getLangOpts().OpenCLVersion >= 200 || getLangOpts().OpenCLCPlusPlus) { in CheckCompareOperands()
12453 if (getLangOpts().OpenCL && getLangOpts().OpenCLVersion < 120 && in CheckVectorLogicalOperands()
12645 Context.getLangOpts().OpenCLVersion < 120) { in CheckLogicalOperands()
14896 Context.getLangOpts().OpenCLVersion < 120) { in CreateBuiltinUnaryOp()
14905 Context.getLangOpts().OpenCLVersion < 120 && in CreateBuiltinUnaryOp()
H A DSemaDecl.cpp7990 if (getLangOpts().OpenCLVersion == 120 && in CheckVariableDeclarationType()
8822 if (S.getLangOpts().OpenCLVersion <= 120 && in checkIsValidOpenCLKernelParameter()
9958 if ((getLangOpts().OpenCLVersion >= 120) in ActOnFunctionDeclarator()
10005 if (getLangOpts().OpenCLVersion >= 200 || getLangOpts().OpenCLCPlusPlus) { in ActOnFunctionDeclarator()
H A DSemaInit.cpp8084 if (S.getLangOpts().OpenCLVersion >= 200 && in Perform()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp3948 if (!getLangOpts().OpenCL || (getLangOpts().OpenCLVersion < 200 && in ParseDeclarationSpecifiers()
5135 return (getLangOpts().OpenCL && getLangOpts().OpenCLVersion >= 200) || in isDeclarationSpecifier()
5667 ((Lang.OpenCL && Lang.OpenCLVersion >= 200) || Lang.OpenCLCPlusPlus)) in isPtrOperatorToken()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp3782 if ((Ctx.getLangOpts().OpenCLVersion >= 200 && in isNullPointerConstant()
3785 Ctx.getLangOpts().OpenCLVersion < 200 && in isNullPointerConstant()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp735 auto Version = LangOpts.OpenCLCPlusPlus ? 200 : LangOpts.OpenCLVersion; in Release()
830 auto Version = LangOpts.OpenCLCPlusPlus ? 200 : LangOpts.OpenCLVersion; in EmitOpenCLMetadata()
H A DCGCall.cpp2113 if (getLangOpts().OpenCLVersion <= 120) { in ConstructAttributeList()