aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorSergei Barannikov <barannikov88@gmail.com>2023-10-09 09:40:44 +0300
committerGitHub <noreply@github.com>2023-10-09 09:40:44 +0300
commitc98bf1e45e22e2a7d107b187f5d3e7abf5e81375 (patch)
tree64da40c846a3163d0cd7155649c39cd034e57d02 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent7cfe32d4d8da6eb6ea558a584a3a52e2e8a97a3c (diff)
downloadllvm-c98bf1e45e22e2a7d107b187f5d3e7abf5e81375.zip
llvm-c98bf1e45e22e2a7d107b187f5d3e7abf5e81375.tar.gz
llvm-c98bf1e45e22e2a7d107b187f5d3e7abf5e81375.tar.bz2
[Sparc] Replace CMP instructions with InstAlias (NFCI) (#66859)
According to the manual `cmp` is a synthetic instruction that maps to `subcc` with %g0 output operand. Make it so. The change required some changes to instruction selection process. The reason is that the old CMP did not have an output operand, while setcc does have one. We want that operand to be %g0. The easiest way to achieve this seems to be to mark SUBCC with hasPostISelHook and replace the output operand with %g0 in the corresponding TargetLowering method.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions