Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 5769ddb

Browse files
zertoshfacebook-github-bot
authored andcommitted
Apply clang-format 18
Reviewed By: igorsugak Differential Revision: D56065247 fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3
1 parent cc770cb commit 5769ddb

File tree

27 files changed

+1010
-937
lines changed

27 files changed

+1010
-937
lines changed

include/glow/Backend/CompiledFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CompiledFunction {
4545
runtime::RuntimeBundle &getRuntimeBundle() { return runtimeBundle_; }
4646

4747
/// Collects constants for runtime.
48-
virtual void collectConstants(const Module *){};
48+
virtual void collectConstants(const Module *) {};
4949

5050
/// Setter for TraceEvent lookup. Note: does not enable tracing automatically.
5151
void setTraceInfo(TraceInfo &&info) { traceInfo_ = std::move(info); }
@@ -63,7 +63,7 @@ class CompiledFunction {
6363
/// Once the compiledFunction is done being added to devices calling this
6464
/// method will free any resources needed to load the network on the device
6565
/// but not needed for running on the device.
66-
virtual void freeCompilationResources(){};
66+
virtual void freeCompilationResources() {};
6767

6868
/// \returns a JSON representation of the result of compilation. Structure of
6969
/// the JSON is dependent on the backend.

include/glow/LLVMIRCodeGen/GlowJIT.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
#endif
4848
#endif
4949

50-
//##############################################################################
50+
// ##############################################################################
5151
#if GLOW_JIT_ORC_VERSION == 1
52-
//##############################################################################
52+
// ##############################################################################
5353
namespace llvm {
5454
namespace orc {
5555

@@ -130,9 +130,9 @@ namespace glow {
130130
using GlowJIT = llvm::orc::GlowJIT;
131131
}
132132

133-
//##############################################################################
133+
// ##############################################################################
134134
#elif GLOW_JIT_ORC_VERSION == 2
135-
//##############################################################################
135+
// ##############################################################################
136136

137137
namespace glow {
138138

lib/Backends/CPU/libjit_cpu/libjit_cpu_conv.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void libjit_conv_init_output_with_bias(dim_t N, float *outW, const float *biasW,
4040
auto outIdx = libjit_getXYZW(outWdims, N, ax, ay, d);
4141
outW[outIdx] = bias;
4242
} // For each depth in the output.
43-
} // For each Y in the output.
44-
} // For each X in the output.
43+
} // For each Y in the output.
44+
} // For each X in the output.
4545
}
4646

4747
/// Perform the heart of the convolution. Load \p ywidth scalars in a specific
@@ -196,8 +196,8 @@ void libjit_convDKKC8_foreach_xy_filter_pixels(
196196
} // For each Y, in step of 1, in the output.
197197

198198
} // For each X in the output.
199-
} // For each Y in the filter.
200-
} // For each X in the filter.
199+
} // For each Y in the filter.
200+
} // For each X in the filter.
201201
}
202202

203203
// Process the input buffer in the convolution by iterating on the input buffer
@@ -245,9 +245,9 @@ void libjit_convDKKC8_foreach_xy_pixels_filter(
245245
outC += numDepthRegs * 8;
246246
}
247247
} // For each Y in the filter.
248-
} // For each X in the filter.
249-
} // For each Y in the output.
250-
} // For each X in the output.
248+
} // For each X in the filter.
249+
} // For each Y in the output.
250+
} // For each X in the output.
251251
}
252252

253253
} // namespace
@@ -293,8 +293,8 @@ void libjit_convDKKC8_f(float *outW, const float *inW, const float *filterW,
293293
endChannelIndex);
294294

295295
} // For each D (the depth, or the output channel).
296-
} // for each G, the group
297-
} // For each N, the sample in the batch.
296+
} // for each G, the group
297+
} // For each N, the sample in the batch.
298298
}
299299

300300
} // extern "C"

0 commit comments

Comments
 (0)