|
15 | 15 | // Operand and SDNode transformation definitions.
|
16 | 16 | //===----------------------------------------------------------------------===//
|
17 | 17 |
|
18 |
| -def RnumArg_0_7 : AsmOperandClass { |
19 |
| - let Name = "RnumArg_0_7"; |
20 |
| - let RenderMethod = "addImmOperands"; |
21 |
| - let DiagnosticType = "InvalidRnumArg_0_7"; |
22 |
| -} |
23 |
| - |
24 |
| -def RnumArg_1_10 : AsmOperandClass { |
25 |
| - let Name = "RnumArg_1_10"; |
26 |
| - let RenderMethod = "addImmOperands"; |
27 |
| - let DiagnosticType = "InvalidRnumArg_1_10"; |
28 |
| -} |
29 |
| - |
30 |
| -def RnumArg_2_14 : AsmOperandClass { |
31 |
| - let Name = "RnumArg_2_14"; |
32 |
| - let RenderMethod = "addImmOperands"; |
33 |
| - let DiagnosticType = "InvalidRnumArg_2_14"; |
34 |
| -} |
35 |
| - |
36 |
| -def rnum_0_7 : Operand<XLenVT>, ImmLeaf<XLenVT, |
37 |
| - [{return (0 <= Imm && Imm <= 7);}]> { |
38 |
| - let ParserMatchClass = RnumArg_0_7; |
39 |
| - let DecoderMethod = "decodeUImmOperand<5>"; |
40 |
| - let OperandType = "OPERAND_RVKRNUM_0_7"; |
41 |
| - let OperandNamespace = "RISCVOp"; |
42 |
| -} |
43 |
| - |
44 |
| -def rnum_1_10 : Operand<XLenVT>, ImmLeaf<XLenVT, |
45 |
| - [{return (1 <= Imm && Imm <= 10);}]> { |
46 |
| - let ParserMatchClass = RnumArg_1_10; |
47 |
| - let DecoderMethod = "decodeUImmOperand<5>"; |
48 |
| - let OperandType = "OPERAND_RVKRNUM_1_10"; |
49 |
| - let OperandNamespace = "RISCVOp"; |
50 |
| -} |
51 |
| - |
52 |
| -def rnum_2_14 : Operand<XLenVT>, ImmLeaf<XLenVT, |
53 |
| - [{return (2 <= Imm && Imm <= 14);}]> { |
54 |
| - let ParserMatchClass = RnumArg_2_14; |
55 |
| - let DecoderMethod = "decodeUImmOperand<5>"; |
56 |
| - let OperandType = "OPERAND_RVKRNUM_2_14"; |
57 |
| - let OperandNamespace = "RISCVOp"; |
58 |
| -} |
59 |
| - |
60 | 18 | def tuimm5 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<5>(Imm);}]> {
|
61 | 19 | let ParserMatchClass = UImmAsmOperand<5>;
|
62 | 20 | let EncoderMethod = "getUImmOpValue";
|
|
0 commit comments