[llvm] [ARM][TableGen][MC] Change the ARM mnemonic operands to be optional for ASM parsing (PR #83436)
Ivan Kosarev via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 04:51:19 PST 2024
================
@@ -3224,10 +3263,11 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
// Sort the instruction table using the partial order on classes. We use
// stable_sort to ensure that ambiguous instructions are still
// deterministically ordered.
- llvm::stable_sort(
- Info.Matchables,
- [](const std::unique_ptr<MatchableInfo> &a,
- const std::unique_ptr<MatchableInfo> &b) { return *a < *b; });
+ llvm::stable_sort(Info.Matchables,
+ [&Target](const std::unique_ptr<MatchableInfo> &a,
+ const std::unique_ptr<MatchableInfo> &b) {
+ return a->comp(*b, Target);
----------------
kosarev wrote:
The `assert(!(**J < **I));` below needs to be updated as well?
https://github.com/llvm/llvm-project/pull/83436
More information about the llvm-commits
mailing list