Skip to content

[RISCV][NFC] Update the comments in RISCVMatInt.h #143402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ class APInt;
namespace RISCVMatInt {

enum OpndKind {
RegImm, // ADDI/ADDIW/SLLI/SRLI/BSETI/BCLRI
Imm, // LUI
RegReg, // SH1ADD/SH2ADD/SH3ADD
RegImm, // ADDI/ADDIW/XORI/SLLI/SRLI/SLLI_UW/RORI/BSETI/BCLRI/TH_SRRI
Imm, // LUI/QC_LI/QC_E_LI
RegReg, // SH1ADD/SH2ADD/SH3ADD/PACK
RegX0, // ADD_UW
};

class Inst {
unsigned Opc;
int32_t Imm; // The largest value we need to store is 20 bits.
int32_t Imm; // The largest value we need to store is 32 bits for QC_E_LI.

public:
Inst(unsigned Opc, int64_t I) : Opc(Opc), Imm(I) {
Expand Down
Loading