Skip to content

Commit 9c2ba7e

Browse files
committed
cpu: tidy: readability
1 parent 8c6ed50 commit 9c2ba7e

5 files changed

+4
-8
lines changed

src/cpu/x64/jit_avx512_core_bf16cvt.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ struct jit_avx512_core_add_cvt_ps_to_bf16_t : public jit_generator_t {
288288
// it is required for quick implementation of 1x1 bf16 bwd_w jit kernel
289289
// w/o using permw instruction inside
290290
// TODO: consider modification/replacement for outer transformation jit kernel
291+
//NOLINTNEXTLINE(readability-identifier-naming)
291292
struct jit_avx512_core_bf16_reorder_s16c_to_S16c2s_t : public jit_generator_t {
292293
DECLARE_CPU_JIT_AUX_FUNCTIONS(jit_avx512_core_bf16_reorder_s16c_to_S16c2s)
293294

src/cpu/x64/jit_brgemm_post_ops.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ struct jit_brgemm_kernel_diff_bias_t : public jit_generator_t {
113113
void init_masks(int tail_length);
114114
void generate() override;
115115

116-
private:
117116
void horizontal_sum(Xbyak::Xmm src);
118117
void horizontal_sum(Xbyak::Ymm src, Xbyak::Ymm workspace);
119118
void horizontal_sum(Xbyak::Zmm src, Xbyak::Zmm workspace);
@@ -283,7 +282,7 @@ struct jit_brgemm_kernel_post_ops_t : public jit_brgemm_kernel_post_ops_base_t,
283282
}
284283

285284
template <typename T>
286-
const T maybe_mask(const T vmm_in, bool mask_flag, bool store,
285+
T maybe_mask(const T vmm_in, bool mask_flag, bool store,
287286
Xbyak::Opmask ktail_mask) {
288287
assert(IMPLICATION(mask_flag, isa_has_masks(brg_.isa_impl)));
289288
return mask_flag

src/cpu/x64/rnn/brgemm_cell_common_fwd.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2021-2024 Intel Corporation
2+
* Copyright 2021-2025 Intel Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -121,7 +121,6 @@ class brgemm_dst_proj_t {
121121
private:
122122
void kernel(const int ithr, const int nthr) const;
123123

124-
private:
125124
const ref_rnn_brgemm_t &rnn_brgemm_;
126125
const rnn_utils::rnn_conf_t &rnn_;
127126
const int proj_desc_idx_;

src/cpu/x64/rnn/jit_uni_lstm_cell_postgemm.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ struct jit_uni_lstm_cell_postgemm_t {
162162
}
163163
}
164164

165-
protected:
166165
const bool avx2_available_ = is_superset(isa, avx2);
167166

168167
private:

src/cpu/x64/rnn/jit_uni_rnn_common_postgemm.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ struct jit_uni_rnn_postgemm : public jit_generator_t {
6969
, zmm_tail_k_mask(k3)
7070
, xf16_dq_reg_idx(tmp_vector_register_idx) {}
7171

72-
~jit_uni_rnn_postgemm() override {
73-
if (bf16_emu_) delete bf16_emu_;
74-
}
72+
~jit_uni_rnn_postgemm() override { delete bf16_emu_; }
7573

7674
bool is_projection() const { return projection_; };
7775

0 commit comments

Comments
 (0)