Skip to content

Commit a80f8a1

Browse files
committed
Keepd comment about extension start with 'z' 's' 'x'
1 parent 2559f49 commit a80f8a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/lib/Support/RISCVISAInfo.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,14 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension,
911911
return E;
912912
} else if (CurrExt.front() == 'z' || CurrExt.front() == 's' ||
913913
CurrExt.front() == 'x') {
914+
// Handle other types of extensions other than the standard
915+
// general purpose and standard user-level extensions.
916+
// Parse the ISA string containing non-standard user-level
917+
// extensions, standard supervisor-level extensions and
918+
// non-standard supervisor-level extensions.
919+
// These extensions start with 'z', 's', 'x' prefixes, might have a
920+
// version number (major, minor) and are separated by a single
921+
// underscore '_'. We do not enforce a canonical order for them.
914922
if (auto E = processMultiLetterExtension(
915923
CurrExt, SeenExts, ExtsVersion, IgnoreUnknown,
916924
EnableExperimentalExtension, ExperimentalExtensionVersionCheck))

0 commit comments

Comments
 (0)