aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2024-07-11 11:33:19 +0700
committerGitHub <noreply@github.com>2024-07-11 11:33:19 +0700
commita92bcb20b8cfeb74852ccade1651cdf4d1f296de (patch)
treea0582ac24888949840dfbacf7bedbd3b52614b9e /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent6db0a3f853c901fd47d9d8b715c8d68ece2837c4 (diff)
downloadllvm-a92bcb20b8cfeb74852ccade1651cdf4d1f296de.zip
llvm-a92bcb20b8cfeb74852ccade1651cdf4d1f296de.tar.gz
llvm-a92bcb20b8cfeb74852ccade1651cdf4d1f296de.tar.bz2
[SPARC][IAS] Reject unknown/unavailable mnemonics early in ParseInstruction
Validate and reject any unknown or unavailable instruction mnemonics early in ParseInstruction, before any operand parsing is performed. Some operands (mainly memory ones) can be parsed slightly differently in V8 and V9 assembly language, so by rejecting unknown or unavailable instructions early we can prevent the error message from being shadowed by the one raised during operand parsing. As a side effect this also allows us to tell unknown and unavailable mnemonics apart, and issue a suggestion in appropriate cases. This is based on the approach taken by the MIPS backend. Reviewers: brad0, rorth, s-barannikov, jrtc27 Reviewed By: s-barannikov Pull Request: https://github.com/llvm/llvm-project/pull/96021
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions