Lines Matching refs:Feature
68 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { in isPlatformEnvironment() argument
73 if (Platform == Feature || Target.getTriple().getOSName() == Feature || in isPlatformEnvironment()
74 Env == Feature) in isPlatformEnvironment()
94 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); in isPlatformEnvironment()
96 return PlatformEnv == Feature; in isPlatformEnvironment()
101 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
103 bool HasFeature = llvm::StringSwitch<bool>(Feature) in hasFeature()
121 .Default(Target.hasFeature(Feature) || in hasFeature()
122 isPlatformEnvironment(Target, Feature)); in hasFeature()
126 Feature) != LangOpts.ModuleFeatures.end(); in hasFeature()
290 void Module::addRequirement(StringRef Feature, bool RequiredState, in addRequirement() argument
293 Requirements.push_back(Requirement(std::string(Feature), RequiredState)); in addRequirement()
296 if (hasFeature(Feature, LangOpts, Target) == RequiredState) in addRequirement()