Lines Matching refs:LangOpts
101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
104 .Case("altivec", LangOpts.AltiVec) in hasFeature()
105 .Case("blocks", LangOpts.Blocks) in hasFeature()
106 .Case("coroutines", LangOpts.Coroutines) in hasFeature()
107 .Case("cplusplus", LangOpts.CPlusPlus) in hasFeature()
108 .Case("cplusplus11", LangOpts.CPlusPlus11) in hasFeature()
109 .Case("cplusplus14", LangOpts.CPlusPlus14) in hasFeature()
110 .Case("cplusplus17", LangOpts.CPlusPlus17) in hasFeature()
111 .Case("c99", LangOpts.C99) in hasFeature()
112 .Case("c11", LangOpts.C11) in hasFeature()
113 .Case("c17", LangOpts.C17) in hasFeature()
114 .Case("freestanding", LangOpts.Freestanding) in hasFeature()
115 .Case("gnuinlineasm", LangOpts.GNUAsm) in hasFeature()
116 .Case("objc", LangOpts.ObjC) in hasFeature()
117 .Case("objc_arc", LangOpts.ObjCAutoRefCount) in hasFeature()
118 .Case("opencl", LangOpts.OpenCL) in hasFeature()
120 .Case("zvector", LangOpts.ZVector) in hasFeature()
124 HasFeature = llvm::is_contained(LangOpts.ModuleFeatures, Feature); in hasFeature()
128 bool Module::isUnimportable(const LangOptions &LangOpts, in isUnimportable() argument
140 if (hasFeature(Current->Requirements[I].first, LangOpts, Target) != in isUnimportable()
151 bool Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable() argument
158 if (isUnimportable(LangOpts, Target, Req, ShadowingModule)) in isAvailable()
292 const LangOptions &LangOpts, in addRequirement() argument
297 if (hasFeature(Feature, LangOpts, Target) == RequiredState) in addRequirement()