Lines Matching refs:LangOpts
60 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
63 .Case("altivec", LangOpts.AltiVec) in hasFeature()
64 .Case("blocks", LangOpts.Blocks) in hasFeature()
65 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
66 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature()
67 .Case("objc", LangOpts.ObjC1) in hasFeature()
68 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature()
69 .Case("opencl", LangOpts.OpenCL) in hasFeature()
71 .Case("zvector", LangOpts.ZVector) in hasFeature()
74 HasFeature = std::find(LangOpts.ModuleFeatures.begin(), in hasFeature()
75 LangOpts.ModuleFeatures.end(), in hasFeature()
76 Feature) != LangOpts.ModuleFeatures.end(); in hasFeature()
80 bool Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable() argument
88 if (hasFeature(Current->Requirements[I].first, LangOpts, Target) != in isAvailable()
186 const LangOptions &LangOpts, in addRequirement() argument
191 if (hasFeature(Feature, LangOpts, Target) == RequiredState) in addRequirement()