aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorSergei Barannikov <barannikov88@gmail.com>2025-08-22 00:35:30 +0300
committerGitHub <noreply@github.com>2025-08-21 21:35:30 +0000
commit2421929ca62af916fa68aeb9463f5a2a9f8fd99d (patch)
treed983a99de6f2d7ac74aca463bc73b41f74e1a369 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parentd38a5afa5a4ab9cec49e47b6e71bfb3f9f25fb08 (diff)
downloadllvm-2421929ca62af916fa68aeb9463f5a2a9f8fd99d.zip
llvm-2421929ca62af916fa68aeb9463f5a2a9f8fd99d.tar.gz
llvm-2421929ca62af916fa68aeb9463f5a2a9f8fd99d.tar.bz2
[TableGen][DecoderEmitter] Infer encoding's HasCompleteDecoder earlier (NFCI) (#154644)
If an encoding has a custom decoder, the decoder is assumed to be "complete" (always succeed) if hasCompleteDecoder field is true. We determine this when constructing InstructionEncoding. If the decoder for an encoding is *generated*, it always succeeds if none of the operand decoders can fail. The latter is determined based on the value of operands' DecoderMethod/hasCompleteDecoder. This happens late, at table construction time, making the code harder to follow. This change moves this logic to the InstructionEncoding constructor.
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions