From afd38f0c617d6f89b2b4532c6c44f116617e2b6f Mon Sep 17 00:00:00 2001 From: Felix Thomasmathibalan Date: Wed, 27 Sep 2023 17:46:17 +0100 Subject: Apply clang-format on repository Code is formatted as per a revised clang format configuration file(not part of this delivery). Version 14.0.6 is used. Exclusion List: - files with .cl extension - files that are not strictly C/C++ (e.g. Android.bp, Sconscript ...) And the following directories - compute_kernel_writer/validation/ - tests/ - include/ - src/core/NEON/kernels/convolution/ - src/core/NEON/kernels/arm_gemm/ - src/core/NEON/kernels/arm_conv/ - data/ There will be a follow up for formatting of .cl files and the files under tests/ and compute_kernel_writer/validation/. Signed-off-by: Felix Thomasmathibalan Change-Id: Ib7eb1fcf4e7537b9feaefcfc15098a804a3fde0a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10391 Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gunes Bayir --- src/graph/PassManager.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/graph/PassManager.cpp') diff --git a/src/graph/PassManager.cpp b/src/graph/PassManager.cpp index f7e214c1b4..9a889e1da3 100644 --- a/src/graph/PassManager.cpp +++ b/src/graph/PassManager.cpp @@ -29,8 +29,7 @@ namespace arm_compute { namespace graph { -PassManager::PassManager() - : _passes() +PassManager::PassManager() : _passes() { } @@ -46,7 +45,7 @@ IGraphMutator *PassManager::pass(size_t index) void PassManager::append(std::unique_ptr pass, bool conditional) { - if(pass && conditional) + if (pass && conditional) { ARM_COMPUTE_LOG_GRAPH_VERBOSE("Appending mutating pass : " << pass->name() << std::endl); _passes.push_back(std::move(pass)); @@ -60,9 +59,9 @@ void PassManager::clear() void PassManager::run_all(Graph &g) { - for(auto &pass : _passes) + for (auto &pass : _passes) { - if(pass) + if (pass) { ARM_COMPUTE_LOG_GRAPH_INFO("Running mutating pass : " << pass->name() << std::endl); pass->mutate(g); @@ -72,9 +71,9 @@ void PassManager::run_all(Graph &g) void PassManager::run_type(Graph &g, IGraphMutator::MutationType type) { - for(auto &pass : _passes) + for (auto &pass : _passes) { - if(pass && (pass->type() == type)) + if (pass && (pass->type() == type)) { ARM_COMPUTE_LOG_GRAPH_INFO("Running mutating pass : " << pass->name() << std::endl); pass->mutate(g); @@ -84,17 +83,17 @@ void PassManager::run_type(Graph &g, IGraphMutator::MutationType type) void PassManager::run_index(Graph &g, size_t index) { - if(index >= _passes.size()) + if (index >= _passes.size()) { return; } auto &pass = _passes.at(index); - if(pass != nullptr) + if (pass != nullptr) { ARM_COMPUTE_LOG_GRAPH_INFO("Running mutating pass : " << pass->name() << std::endl); pass->mutate(g); } } } // namespace graph -} // namespace arm_compute \ No newline at end of file +} // namespace arm_compute -- cgit v1.2.1