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