Skip to content

Commit a08bf50

Browse files
authored
[RISCV][NFC] Update the comments in RISCVMatInt.h (#143402)
Only a subset of used instructions was listed, which could be confusing. Also, QC_E_LI uses all 32 bits of Imm.
1 parent 39a7664 commit a08bf50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class APInt;
2020
namespace RISCVMatInt {
2121

2222
enum OpndKind {
23-
RegImm, // ADDI/ADDIW/SLLI/SRLI/BSETI/BCLRI
24-
Imm, // LUI
25-
RegReg, // SH1ADD/SH2ADD/SH3ADD
23+
RegImm, // ADDI/ADDIW/XORI/SLLI/SRLI/SLLI_UW/RORI/BSETI/BCLRI/TH_SRRI
24+
Imm, // LUI/QC_LI/QC_E_LI
25+
RegReg, // SH1ADD/SH2ADD/SH3ADD/PACK
2626
RegX0, // ADD_UW
2727
};
2828

2929
class Inst {
3030
unsigned Opc;
31-
int32_t Imm; // The largest value we need to store is 20 bits.
31+
int32_t Imm; // The largest value we need to store is 32 bits for QC_E_LI.
3232

3333
public:
3434
Inst(unsigned Opc, int64_t I) : Opc(Opc), Imm(I) {

0 commit comments

Comments
 (0)