This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Simplify RISCVISAInfo::compareExtension. NFCI
ClosedPublic

Authored by craig.topper on Mar 17 2023, 12:12 AM.

Details

Summary

Instead of having a separate single letter and multiletter ranking
use a unified rank that assigns multiletter a larger value than
single letter.

Once we've ranked the extensions, then we compare using these ranks.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 17 2023, 12:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2023, 12:12 AM
craig.topper requested review of this revision.Mar 17 2023, 12:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2023, 12:12 AM
This revision is now accepted and ready to land.Mar 20 2023, 9:10 PM