Skip to content

Commit 49f8f69

Browse files
toppercmahesh-attarde
authored andcommitted
[RISCV] Rename RVPUnaryWUF to RVPUnary_ri for consistency. NFC
1 parent b456ed9 commit 49f8f69

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoP.td

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class RVPShiftB_ri<bits<3> f, bits<3> funct3, string opcodestr>
123123
}
124124

125125
let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
126-
class RVPUnaryWUF<bits<2> w, bits<5> uf, string opcodestr>
126+
class RVPUnary_ri<bits<2> w, bits<5> uf, string opcodestr>
127127
: RVInstIBase<0b010, OPC_OP_IMM_32, (outs GPR:$rd), (ins GPR:$rs1),
128128
opcodestr, "$rd, $rs1"> {
129129
let Inst{31-27} = 0b11100;
@@ -171,13 +171,13 @@ let Predicates = [HasStdExtP] in
171171
def PLI_B : PLI_B_i<0b10110100, "pli.b">;
172172

173173
let Predicates = [HasStdExtP] in {
174-
def PSEXT_H_B : RVPUnaryWUF<0b00, 0b00100, "psext.h.b">;
175-
def PSABS_H : RVPUnaryWUF<0b00, 0b00111, "psabs.h">;
176-
def PSABS_B : RVPUnaryWUF<0b10, 0b00111, "psabs.b">;
174+
def PSEXT_H_B : RVPUnary_ri<0b00, 0b00100, "psext.h.b">;
175+
def PSABS_H : RVPUnary_ri<0b00, 0b00111, "psabs.h">;
176+
def PSABS_B : RVPUnary_ri<0b10, 0b00111, "psabs.b">;
177177
} // Predicates = [HasStdExtP]
178178
let Predicates = [HasStdExtP, IsRV64] in {
179-
def PSEXT_W_B : RVPUnaryWUF<0b01, 0b00100, "psext.w.b">;
180-
def PSEXT_W_H : RVPUnaryWUF<0b01, 0b00101, "psext.w.h">;
179+
def PSEXT_W_B : RVPUnary_ri<0b01, 0b00100, "psext.w.b">;
180+
def PSEXT_W_H : RVPUnary_ri<0b01, 0b00101, "psext.w.h">;
181181
} // Predicates = [HasStdExtP, IsRV64]
182182

183183
let Predicates = [HasStdExtP] in

0 commit comments

Comments
 (0)