Skip to content

Commit 1d4d6a9

Browse files
committed
[RISCV] Add explanatory comment to RISCVOp::OPERAND_AVL.
1 parent 671f0e2 commit 1d4d6a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ enum OperandType : unsigned {
118118
OPERAND_UIMM20,
119119
OPERAND_UIMMLOG2XLEN,
120120
OPERAND_LAST_RISCV_IMM = OPERAND_UIMMLOG2XLEN,
121+
// Operand is either a register or uimm5, this is used by V extension pseudo
122+
// instructions to represent a value that be passed as AVL to either vsetvli
123+
// or vsetivli.
121124
OPERAND_AVL,
122125
};
123126
} // namespace RISCVOp

0 commit comments

Comments
 (0)