@@ -1173,19 +1173,19 @@ ParsedTargetAttr AArch64TargetInfo::parseTargetAttr(StringRef Features) const {
1173
1173
bool AArch64TargetInfo::initFeatureMap (
1174
1174
llvm::StringMap<bool > &Features, DiagnosticsEngine &Diags, StringRef CPU,
1175
1175
const std::vector<std::string> &FeaturesVec) const {
1176
- std::vector<std::string> UpdatedFeaturesVec;
1177
- // Parse the CPU and add any implied features.
1178
- std::optional<llvm::AArch64::CpuInfo> CpuInfo = llvm::AArch64::parseCpu (CPU);
1179
- if (CpuInfo) {
1180
- auto Exts = CpuInfo->getImpliedExtensions ();
1181
- std::vector<StringRef> CPUFeats;
1182
- llvm::AArch64::getExtensionFeatures (Exts, CPUFeats);
1183
- for (auto F : CPUFeats) {
1184
- assert ((F[0 ] == ' +' || F[0 ] == ' -' ) && " Expected +/- in target feature!" );
1185
- UpdatedFeaturesVec.push_back (F.str ());
1186
- }
1187
- }
1188
- return TargetInfo::initFeatureMap (Features, Diags, CPU, UpdatedFeaturesVec);
1176
+ std::vector<std::string> UpdatedFeaturesVec;
1177
+ // Parse the CPU and add any implied features.
1178
+ std::optional<llvm::AArch64::CpuInfo> CpuInfo = llvm::AArch64::parseCpu (CPU);
1179
+ if (CpuInfo) {
1180
+ auto Exts = CpuInfo->getImpliedExtensions ();
1181
+ std::vector<StringRef> CPUFeats;
1182
+ llvm::AArch64::getExtensionFeatures (Exts, CPUFeats);
1183
+ for (auto F : CPUFeats) {
1184
+ assert ((F[0 ] == ' +' || F[0 ] == ' -' ) && " Expected +/- in target feature!" );
1185
+ UpdatedFeaturesVec.push_back (F.str ());
1186
+ }
1187
+ }
1188
+ return TargetInfo::initFeatureMap (Features, Diags, CPU, UpdatedFeaturesVec);
1189
1189
}
1190
1190
1191
1191
bool AArch64TargetInfo::hasBFloat16Type () const {
0 commit comments