File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ void RISCVISAInfo::printEnabledExtensions(
124
124
RISCVISAUtils::OrderedExtensionMap FullExtMap;
125
125
RISCVISAUtils::OrderedExtensionMap ExtMap;
126
126
for (const auto &E : SupportedExtensions)
127
- if (EnabledFeatureNames.find (E.Name ) != EnabledFeatureNames. end () ) {
127
+ if (EnabledFeatureNames.count (E.Name ) != 0 ) {
128
128
FullExtMap[E.Name ] = {E.Version .Major , E.Version .Minor };
129
129
ExtMap[E.Name ] = {E.Version .Major , E.Version .Minor };
130
130
}
@@ -138,8 +138,7 @@ void RISCVISAInfo::printEnabledExtensions(
138
138
ExtMap.clear ();
139
139
for (const auto &E : SupportedExperimentalExtensions) {
140
140
StringRef Name (E.Name );
141
- if (EnabledFeatureNames.find (" experimental-" + Name.str ()) !=
142
- EnabledFeatureNames.end ()) {
141
+ if (EnabledFeatureNames.count (" experimental-" + Name.str ()) != 0 ) {
143
142
FullExtMap[E.Name ] = {E.Version .Major , E.Version .Minor };
144
143
ExtMap[E.Name ] = {E.Version .Major , E.Version .Minor };
145
144
}
Original file line number Diff line number Diff line change @@ -1078,20 +1078,20 @@ R"(Extensions enabled for the given RISC-V target
1078
1078
i 2.1 'I' (Base Integer Instruction Set)
1079
1079
1080
1080
Experimental extensions
1081
- ztso 0.1 'Ztso ' (Memory Model - Total Store Order )
1081
+ zicfilp 0.4 'Zicfilp ' (Landing pad )
1082
1082
1083
- ISA String: rv64i2p1_ztso0p1 )" ;
1083
+ ISA String: rv64i2p1_zicfilp0p4 )" ;
1084
1084
// clang-format on
1085
1085
1086
1086
StringMap<StringRef> DescMap;
1087
1087
DescMap[" i" ] = " 'I' (Base Integer Instruction Set)" ;
1088
- DescMap[" experimental-ztso " ] = " 'Ztso ' (Memory Model - Total Store Order )" ;
1089
- std::set<StringRef> EnabledExtensions = {" i" , " experimental-ztso " };
1088
+ DescMap[" experimental-zicfilp " ] = " 'Zicfilp ' (Landing pad )" ;
1089
+ std::set<StringRef> EnabledExtensions = {" i" , " experimental-zicfilp " };
1090
1090
1091
1091
outs ().flush ();
1092
1092
testing::internal::CaptureStdout ();
1093
1093
RISCVISAInfo::printEnabledExtensions (/* IsRV64=*/ true , EnabledExtensions,
1094
- DescMap);
1094
+ DescMap);
1095
1095
outs ().flush ();
1096
1096
std::string CapturedOutput = testing::internal::GetCapturedStdout ();
1097
1097
You can’t perform that action at this time.
0 commit comments