Lines Matching +full:second +full:- +full:order
1 //===-- RISCVISAUtils.cpp - RISC-V ISA Utilities --------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
19 // We rank extensions in the following order:
20 // -Single letter extensions in canonical order.
21 // -Unknown single letter extensions in alphabetical order.
22 // -Multi-letter extensions starting with 'z' sorted by canonical order of
23 // the second letter then sorted alphabetically.
24 // -Multi-letter extensions starting with 's' in alphabetical order.
25 // -(TODO) Multi-letter extensions starting with 'zxm' in alphabetical order.
26 // -X extensions in alphabetical order.
27 // -Unknown multi-letter extensions in alphabetical order.
29 // single letter extension rank for single letter and multi-letter extensions
38 // Get the rank for single-letter extension, lower value meaning higher
54 // order, but after all known standard extensions. in singleLetterExtensionRank()
55 return 2 + RISCVISAUtils::AllStdExts.size() + (Ext - 'a'); in singleLetterExtensionRank()
58 // Get the rank for multi-letter extension, lower value meaning higher
59 // priority/order in canonical order.
67 // `z` extension must be sorted by canonical order of second letter. in getExtensionRank()
90 // If the rank is same, it must be sorted by lexicographic order. in compareExtension()