Lines Matching refs:Feature
74 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { in isPlatformEnvironment() argument
79 if (Platform == Feature || Target.getTriple().getOSName() == Feature || in isPlatformEnvironment()
80 Env == Feature) in isPlatformEnvironment()
100 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); in isPlatformEnvironment()
102 return PlatformEnv == Feature; in isPlatformEnvironment()
107 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
109 bool HasFeature = llvm::StringSwitch<bool>(Feature) in hasFeature()
127 .Default(Target.hasFeature(Feature) || in hasFeature()
128 isPlatformEnvironment(Target, Feature)); in hasFeature()
132 Feature) != LangOpts.ModuleFeatures.end(); in hasFeature()
277 void Module::addRequirement(StringRef Feature, bool RequiredState, in addRequirement() argument
280 Requirements.push_back(Requirement(Feature, RequiredState)); in addRequirement()
283 if (hasFeature(Feature, LangOpts, Target) == RequiredState) in addRequirement()