Lines Matching defs:Feature
63 static bool isPlatformEnvironment(const TargetInfo &Target, StringRef Feature) {
68 if (Platform == Feature || Target.getTriple().getOSName() == Feature ||
69 Env == Feature)
89 return PlatformEnv == Feature || CmpPlatformEnv(PlatformEnv, Feature);
91 return PlatformEnv == Feature;
96 static bool hasFeature(StringRef Feature, const LangOptions &LangOpts,
98 bool HasFeature = llvm::StringSwitch<bool>(Feature)
120 .Default(Target.hasFeature(Feature) ||
121 isPlatformEnvironment(Target, Feature));
123 HasFeature = llvm::is_contained(LangOpts.ModuleFeatures, Feature);
314 void Module::addRequirement(StringRef Feature, bool RequiredState,
317 Requirements.push_back(Requirement{std::string(Feature), RequiredState});
320 if (hasFeature(Feature, LangOpts, Target) == RequiredState)