Skip to content

Commit ae7a729

Browse files
committed
Code formatting
Signed-off-by: Maciej Kurc <[email protected]>
1 parent e17b791 commit ae7a729

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

ql-qlf-plugin/ql-dsp-io-regs.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ struct QlDspIORegs : public Pass {
8585

8686
// If the cell does not have the "is_inferred" attribute set
8787
// then don't touch it.
88-
if (!dsp->has_attribute(RTLIL::escape_id("is_inferred")) ||
89-
dsp->get_bool_attribute(RTLIL::escape_id("is_inferred")) == false)
90-
{
88+
if (!dsp->has_attribute(RTLIL::escape_id("is_inferred")) || dsp->get_bool_attribute(RTLIL::escape_id("is_inferred")) == false) {
9189
continue;
9290
}
9391

ql-qlf-plugin/ql-dsp-simd.cc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,12 @@ struct QlDspSimdPass : public Pass {
263263

264264
// Handle the "is_inferred" attribute. If one of the fragments
265265
// is not inferred mark the whole DSP as not inferred
266-
bool is_inferred_a = dsp_a->has_attribute(RTLIL::escape_id("is_inferred")) ?
267-
dsp_a->get_bool_attribute(RTLIL::escape_id("is_inferred")) : false;
268-
bool is_inferred_b = dsp_b->has_attribute(RTLIL::escape_id("is_inferred")) ?
269-
dsp_b->get_bool_attribute(RTLIL::escape_id("is_inferred")) : false;
266+
bool is_inferred_a =
267+
dsp_a->has_attribute(RTLIL::escape_id("is_inferred")) ? dsp_a->get_bool_attribute(RTLIL::escape_id("is_inferred")) : false;
268+
bool is_inferred_b =
269+
dsp_b->has_attribute(RTLIL::escape_id("is_inferred")) ? dsp_b->get_bool_attribute(RTLIL::escape_id("is_inferred")) : false;
270270

271-
simd->set_bool_attribute(RTLIL::escape_id("is_inferred"),
272-
is_inferred_a && is_inferred_b);
271+
simd->set_bool_attribute(RTLIL::escape_id("is_inferred"), is_inferred_a && is_inferred_b);
273272

274273
// Mark DSP parts for removal
275274
cellsToRemove.push_back(dsp_a);

0 commit comments

Comments
 (0)