[RISCV] : Add support for immediate operands.
authorMarkGoncharovAl <EverRest>
Wed, 24 Aug 2022 09:34:24 +0000 (17:34 +0800)
committerZhang Qing Shan <zhangqingshan.zll@bytedance.com>
Wed, 24 Aug 2022 09:48:39 +0000 (17:48 +0800)
commit8c1f18bd3ee1fbd19a83c16ea2038c771cb82b97
tree407ae7769abffdce2df8702be864e5c7cb68c617
parent6703ad1e0c2a30153c75139764672d2ad16069c8
[RISCV] : Add support for immediate operands.

llvm-exegesis uses operand type information provided in tablegen files to initialize
immediate arguments of the instruction. Some of them simply don't have such information.
Thus we should set into relevant immediate operands their specific type.
Also create verification methods for them.

Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D131771
llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoC.td
llvm/lib/Target/RISCV/RISCVInstrInfoV.td
llvm/lib/Target/RISCV/RISCVInstrInfoZb.td