From 40efd5365108b97fc8d6cb93fa1d572a08a93ad5 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Thu, 18 Mar 2021 17:32:00 +0000 Subject: Remove GLES-related code Change-Id: I208281d6e9ec15f9dba03cfbdc36ba2bf072d592 Signed-off-by: Michele Di Giorgio Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5314 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- src/graph/TypeLoader.cpp | 3 +-- src/graph/Utils.cpp | 17 ++++++----------- 2 files changed, 7 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/graph/TypeLoader.cpp b/src/graph/TypeLoader.cpp index 7082d6b99e..8efd66f2c5 100644 --- a/src/graph/TypeLoader.cpp +++ b/src/graph/TypeLoader.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020 Arm Limited. + * Copyright (c) 2018-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -59,7 +59,6 @@ Target target_from_name(const std::string &name) { { "neon", Target::NEON }, { "cl", Target::CL }, - { "gc", Target::GC }, }; #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED diff --git a/src/graph/Utils.cpp b/src/graph/Utils.cpp index 8e12689fb9..37af1bff93 100644 --- a/src/graph/Utils.cpp +++ b/src/graph/Utils.cpp @@ -46,10 +46,6 @@ Target get_default_target() { return Target::CL; } - if(is_target_supported(Target::GC)) - { - return Target::GC; - } ARM_COMPUTE_ERROR("No backend exists!"); } @@ -76,10 +72,9 @@ void force_target_to_graph(Graph &g, Target target) PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) { + ARM_COMPUTE_UNUSED(target); PassManager pm; - const bool is_target_gc = target == Target::GC; - // Passes that mutate graph IR if(cfg.use_synthetic_type) { @@ -88,7 +83,7 @@ PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) case DataType::QASYMM8: case DataType::QASYMM8_SIGNED: { - pm.append(std::make_unique(cfg.synthetic_type), !is_target_gc); + pm.append(std::make_unique(cfg.synthetic_type)); break; } default: @@ -98,13 +93,13 @@ PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) } } } - pm.append(std::make_unique(), !is_target_gc); + pm.append(std::make_unique()); pm.append(std::make_unique()); - pm.append(std::make_unique(), !is_target_gc); + pm.append(std::make_unique()); // Passes that mutate backend information - pm.append(std::make_unique(), !is_target_gc); - pm.append(std::make_unique(), !is_target_gc); + pm.append(std::make_unique()); + pm.append(std::make_unique()); pm.append(std::make_unique()); return pm; -- cgit v1.2.1