Lines Matching refs:Feature
67 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) { in isPlatformEnvironment() argument
72 if (Platform == Feature || Target.getTriple().getOSName() == Feature || in isPlatformEnvironment()
73 Env == Feature) in isPlatformEnvironment()
93 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature); in isPlatformEnvironment()
95 return PlatformEnv == Feature; in isPlatformEnvironment()
100 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts, in hasFeature() argument
102 bool HasFeature = llvm::StringSwitch<bool>(Feature) in hasFeature()
124 .Default(Target.hasFeature(Feature) || in hasFeature()
125 isPlatformEnvironment(Target, Feature)); in hasFeature()
127 HasFeature = llvm::is_contained(LangOpts.ModuleFeatures, Feature); in hasFeature()
319 void Module::addRequirement(StringRef Feature, bool RequiredState, in addRequirement() argument
322 Requirements.push_back(Requirement{std::string(Feature), RequiredState}); in addRequirement()
325 if (hasFeature(Feature, LangOpts, Target) == RequiredState) in addRequirement()