[RISCV][NFC] Mark rs1 in most memory instructions as memory operand.
authorDmitry Bushev <dmitry.bushev@syntacore.com>
Tue, 22 Nov 2022 11:52:10 +0000 (14:52 +0300)
committerAnton Sidorenko <anton.sidorenko@syntacore.com>
Tue, 22 Nov 2022 13:42:44 +0000 (16:42 +0300)
commit95ef005230e9f793aeb84e2f5ee58571698aace6
tree7342bbb93c72723eb1ace6802568858107276241
parentfaa9be75ee9bfefa6a435f6570997ec3dd3657a3
[RISCV][NFC] Mark rs1 in most memory instructions as memory operand.

Marking rs1 (memory offset base) as memory operand provides additional
semantic value to this operand that can be used by different tools
(e.g. llvm-exegesis).

This change does not affect neigther Isel nor assembler. However it
required some tweaks in tablegen compressed inst emmiter.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D136847
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/lib/Target/RISCV/RISCVInstrInfoC.td
llvm/lib/Target/RISCV/RISCVInstrInfoF.td
llvm/lib/Target/RISCV/RISCVInstrInfoV.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/utils/TableGen/CompressInstEmitter.cpp