[all-commits] [llvm/llvm-project] 742737: [X86][MC] Assert unexpected form in emitREXPrefix, ...
KanRobert via All-commits
all-commits at lists.llvm.org
Sun Feb 26 17:56:08 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7427375531283c263d191a1652719936b7b7e364
https://github.com/llvm/llvm-project/commit/7427375531283c263d191a1652719936b7b7e364
Author: Shengchen Kan <shengchen.kan at intel.com>
Date: 2023-02-27 (Mon, 27 Feb 2023)
Changed paths:
M llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
Log Message:
-----------
[X86][MC] Assert unexpected form in emitREXPrefix, NFCI
1. Add a variable `HasRegOp` to record if the instruction has a register operand
2. Enumerate all the formats with a register operand in the switch
2. Add a default (unreachable) label in the switch (suggested by @reames)
Reviewed By: pengfei
Differential Revision: https://reviews.llvm.org/D144776
More information about the All-commits
mailing list