@@ -68,13 +68,14 @@ static void emitRISCVExtensions(const RecordKeeper &Records, raw_ostream &OS) {
6868 if (!Extensions.empty ()) {
6969 OS << " \n static constexpr ImpliedExtsEntry ImpliedExts[] = {\n " ;
7070 for (const Record *Ext : Extensions) {
71- auto ImpliesList = Ext->getValueAsListOfDefs (" Implies" );
71+ std::vector<const Record *> ImpliesList =
72+ Ext->getValueAsListOfDefs (" Implies" );
7273 if (ImpliesList.empty ())
7374 continue ;
7475
7576 StringRef Name = getExtensionName (Ext);
7677
77- for (auto *ImpliedExt : ImpliesList) {
78+ for (const Record *ImpliedExt : ImpliesList) {
7879 if (!ImpliedExt->isSubClassOf (" RISCVExtension" ))
7980 continue ;
8081
@@ -150,11 +151,12 @@ static void emitRISCVProfiles(const RecordKeeper &Records, raw_ostream &OS) {
150151 OS << " #ifdef GET_SUPPORTED_PROFILES\n " ;
151152 OS << " #undef GET_SUPPORTED_PROFILES\n\n " ;
152153
153- auto Profiles = Records.getAllDerivedDefinitionsIfDefined (" RISCVProfile" );
154+ ArrayRef<const Record *> Profiles =
155+ Records.getAllDerivedDefinitionsIfDefined (" RISCVProfile" );
154156
155157 if (!Profiles.empty ()) {
156158 printProfileTable (OS, Profiles, /* Experimental=*/ false );
157- bool HasExperimentalProfiles = any_of (Profiles, [&](auto & Rec) {
159+ bool HasExperimentalProfiles = any_of (Profiles, [&](const Record * Rec) {
158160 return Rec->getValueAsBit (" Experimental" );
159161 });
160162 if (HasExperimentalProfiles)
@@ -173,15 +175,17 @@ static void emitRISCVProcs(const RecordKeeper &RK, raw_ostream &OS) {
173175 // Iterate on all definition records.
174176 for (const Record *Rec :
175177 RK.getAllDerivedDefinitionsIfDefined (" RISCVProcessorModel" )) {
176- const std::vector<const Record *> & Features =
178+ std::vector<const Record *> Features =
177179 Rec->getValueAsListOfDefs (" Features" );
178- bool FastScalarUnalignedAccess = any_of (Features, [&](auto &Feature) {
179- return Feature->getValueAsString (" Name" ) == " unaligned-scalar-mem" ;
180- });
181-
182- bool FastVectorUnalignedAccess = any_of (Features, [&](auto &Feature) {
183- return Feature->getValueAsString (" Name" ) == " unaligned-vector-mem" ;
184- });
180+ bool FastScalarUnalignedAccess =
181+ any_of (Features, [&](const Record *Feature) {
182+ return Feature->getValueAsString (" Name" ) == " unaligned-scalar-mem" ;
183+ });
184+
185+ bool FastVectorUnalignedAccess =
186+ any_of (Features, [&](const Record *Feature) {
187+ return Feature->getValueAsString (" Name" ) == " unaligned-vector-mem" ;
188+ });
185189
186190 OS << " PROC(" << Rec->getName () << " , {\" " << Rec->getValueAsString (" Name" )
187191 << " \" }, {\" " ;
0 commit comments