Skip to content

Commit 155bf81

Browse files
committed
Keepd comment about extension start with 'z' 's' 'x'
1 parent ee5869b commit 155bf81

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
@@ -914,6 +914,14 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension,
914914
return E;
915915
} else if (CurrExt.front() == 'z' || CurrExt.front() == 's' ||
916916
CurrExt.front() == 'x') {
917+
// Handle other types of extensions other than the standard
918+
// general purpose and standard user-level extensions.
919+
// Parse the ISA string containing non-standard user-level
920+
// extensions, standard supervisor-level extensions and
921+
// non-standard supervisor-level extensions.
922+
// These extensions start with 'z', 's', 'x' prefixes, might have a
923+
// version number (major, minor) and are separated by a single
924+
// underscore '_'. We do not enforce a canonical order for them.
917925
if (auto E = processMultiLetterExtension(
918926
CurrExt, SeenExts, ExtsVersion, IgnoreUnknown,
919927
EnableExperimentalExtension, ExperimentalExtensionVersionCheck))

0 commit comments

Comments
 (0)