[Lldb-commits] [lldb] [llvm] [AArch64][llvm] Tighten SYSP parsing; don't disassemble invalid encodings (PR #182410)
Jonathan Thackray via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 17 06:41:11 PDT 2026
================
@@ -8691,7 +8648,19 @@ unsigned AArch64AsmParser::validateTargetOperandClass(MCParsedAsmOperand &AsmOp,
}
}
-ParseStatus AArch64AsmParser::tryParseGPRSeqPair(OperandVector &Operands) {
+template <bool AllowXZRPair>
+ParseStatus
+AArch64AsmParser::tryParseConsecutiveGPRSeqPair(OperandVector &Operands) {
+ const char *FirstRegExpected =
+ AllowXZRPair ? "expected xzr/xzr or the first even register of a "
+ "consecutive 64-bit register pair"
+ : "expected first even register of a consecutive same-size "
+ "even/odd register pair";
----------------
jthackray wrote:
Thanks for the suggestion, Marian. Can we use `std::format()` as it's C++20, and llvm is still compiled as C++17? It would make this a lot neater.
https://github.com/llvm/llvm-project/pull/182410
More information about the lldb-commits
mailing list