Skip to content

Commit 57fb38a

Browse files
authored
[RISCV] Indent body of let scopes in RISCVInstrInfoP.td. NFC (#153349)
I think this makes the code a little more readable.
1 parent ef47d0b commit 57fb38a

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoP.td

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -136,34 +136,36 @@ class RVPUnary_ri<bits<2> w, bits<5> uf, string opcodestr>
136136
//===----------------------------------------------------------------------===//
137137

138138
let Predicates = [HasStdExtP] in {
139-
let IsSignExtendingOpW = 1 in
140-
def CLS : Unary_r<0b011000000011, 0b001, "cls">;
141-
def ABS : Unary_r<0b011000000111, 0b001, "abs">;
139+
let IsSignExtendingOpW = 1 in
140+
def CLS : Unary_r<0b011000000011, 0b001, "cls">;
141+
def ABS : Unary_r<0b011000000111, 0b001, "abs">;
142142
} // Predicates = [HasStdExtP]
143-
let Predicates = [HasStdExtP, IsRV32] in
144-
def REV_RV32 : Unary_r<0b011010011111, 0b101, "rev">;
143+
144+
let Predicates = [HasStdExtP, IsRV32] in {
145+
def REV_RV32 : Unary_r<0b011010011111, 0b101, "rev">;
146+
} // Predicates = [HasStdExtP, IsRV32]
145147

146148
let Predicates = [HasStdExtP, IsRV64] in {
147-
def REV16 : Unary_r<0b011010110000, 0b101, "rev16">;
148-
def REV_RV64 : Unary_r<0b011010111111, 0b101, "rev">;
149+
def REV16 : Unary_r<0b011010110000, 0b101, "rev16">;
150+
def REV_RV64 : Unary_r<0b011010111111, 0b101, "rev">;
149151

150-
let IsSignExtendingOpW = 1 in {
151-
def CLSW : UnaryW_r<0b011000000011, 0b001, "clsw">;
152-
def ABSW : UnaryW_r<0b011000000111, 0b001, "absw">;
153-
}
152+
let IsSignExtendingOpW = 1 in {
153+
def CLSW : UnaryW_r<0b011000000011, 0b001, "clsw">;
154+
def ABSW : UnaryW_r<0b011000000111, 0b001, "absw">;
155+
}
154156
} // Predicates = [HasStdExtP, IsRV64]
155157

156158
let Predicates = [HasStdExtP] in {
157-
def PSLLI_B : RVPShiftB_ri<0b000, 0b010, "pslli.b">;
158-
def PSLLI_H : RVPShiftH_ri<0b000, 0b010, "pslli.h">;
159-
def PSSLAI_H : RVPShiftH_ri<0b101, 0b010, "psslai.h">;
159+
def PSLLI_B : RVPShiftB_ri<0b000, 0b010, "pslli.b">;
160+
def PSLLI_H : RVPShiftH_ri<0b000, 0b010, "pslli.h">;
161+
def PSSLAI_H : RVPShiftH_ri<0b101, 0b010, "psslai.h">;
160162
} // Predicates = [HasStdExtP]
161-
let DecoderNamespace = "RV32Only",
162-
Predicates = [HasStdExtP, IsRV32] in
163-
def SSLAI : RVPShiftW_ri<0b101, 0b010, "sslai">;
163+
let Predicates = [HasStdExtP, IsRV32], DecoderNamespace = "RV32Only" in {
164+
def SSLAI : RVPShiftW_ri<0b101, 0b010, "sslai">;
165+
} // Predicates = [HasStdExtP, IsRV32], DecoderNamespace = "RV32Only"
164166
let Predicates = [HasStdExtP, IsRV64] in {
165-
def PSLLI_W : RVPShiftW_ri<0b000, 0b010, "pslli.w">;
166-
def PSSLAI_W : RVPShiftW_ri<0b101, 0b010, "psslai.w">;
167+
def PSLLI_W : RVPShiftW_ri<0b000, 0b010, "pslli.w">;
168+
def PSSLAI_W : RVPShiftW_ri<0b101, 0b010, "psslai.w">;
167169
} // Predicates = [HasStdExtP, IsRV64]
168170

169171
let Predicates = [HasStdExtP] in
@@ -174,13 +176,13 @@ let Predicates = [HasStdExtP] in
174176
def PLI_B : PLI_B_i<0b10110100, "pli.b">;
175177

176178
let Predicates = [HasStdExtP] in {
177-
def PSEXT_H_B : RVPUnary_ri<0b00, 0b00100, "psext.h.b">;
178-
def PSABS_H : RVPUnary_ri<0b00, 0b00111, "psabs.h">;
179-
def PSABS_B : RVPUnary_ri<0b10, 0b00111, "psabs.b">;
179+
def PSEXT_H_B : RVPUnary_ri<0b00, 0b00100, "psext.h.b">;
180+
def PSABS_H : RVPUnary_ri<0b00, 0b00111, "psabs.h">;
181+
def PSABS_B : RVPUnary_ri<0b10, 0b00111, "psabs.b">;
180182
} // Predicates = [HasStdExtP]
181183
let Predicates = [HasStdExtP, IsRV64] in {
182-
def PSEXT_W_B : RVPUnary_ri<0b01, 0b00100, "psext.w.b">;
183-
def PSEXT_W_H : RVPUnary_ri<0b01, 0b00101, "psext.w.h">;
184+
def PSEXT_W_B : RVPUnary_ri<0b01, 0b00100, "psext.w.b">;
185+
def PSEXT_W_H : RVPUnary_ri<0b01, 0b00101, "psext.w.h">;
184186
} // Predicates = [HasStdExtP, IsRV64]
185187

186188
let Predicates = [HasStdExtP] in

0 commit comments

Comments
 (0)